有人有使用 XCTest / Swift 时如何发送多个组合键的示例吗?即在运行测试时我们如何将 Shift + Command + H 发送到模拟器?
我看到 perform 方法存在:
perform(withKeyModifiers:block:)
https://developer.apple.com/documentation/xctest/xcuielement/1500563-perform
但不确定如何使用它。
有人有使用 XCTest / Swift 时如何发送多个组合键的示例吗?即在运行测试时我们如何将 Shift + Command + H 发送到模拟器?
我看到 perform 方法存在:
perform(withKeyModifiers:block:)
https://developer.apple.com/documentation/xctest/xcuielement/1500563-perform
但不确定如何使用它。