You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to open shcedular center with appium, I use function keys with param {'key': 'XCUIKeyboardKeyUpArrow', 'modifierFlags': 1 << 2}, I have failed. But I can achieve it by pressing the shortcut key directly on the keyboard.
appium log:
[Appium] Attempting to find matching driver for automationName 'Mac2' and platformName 'Mac'
[Appium] The 'mac2' driver was installed and matched caps.
[Appium] Will require it at C:\Users\liangqixing.appium\node_modules\appium-mac2-driver
[Appium] Requiring driver at C:\Users\liangqixing.appium\node_modules\appium-mac2-driver\build\index.js
[AppiumDriver@ae7b] Appium v2.5.1 creating new Mac2Driver (v1.11.0) session
[AppiumDriver@ae7b] Checking BaseDriver versions for Appium and Mac2Driver
[AppiumDriver@ae7b] Appium's BaseDriver version is 9.5.2
[AppiumDriver@ae7b] Mac2Driver's BaseDriver version is 9.5.2
[Mac2Driver@6024] Creating session with W3C capabilities: {
[Mac2Driver@6024] "alwaysMatch": {
[Mac2Driver@6024] "platformName": "Mac",
[Mac2Driver@6024] "appium:automationName": "Mac2",
[Mac2Driver@6024] "appium:bundleId": "com.apple.dock",
[Mac2Driver@6024] "appium:skipAppKill": true,
[Mac2Driver@6024] "appium:newCommandTimeout": 10,
[Mac2Driver@6024] "appium:webDriverAgentMacUrl": "http://192.168.3.100:10101"
[Mac2Driver@6024] },
[Mac2Driver@6024] "firstMatch": [
[Mac2Driver@6024] {}
[Mac2Driver@6024] ]
[Mac2Driver@6024] }
[Mac2Driver@6024 (58c44a3a)] Session created with session id: 58c44a3a-9200-4fbc-ab6c-63a0c429fc4e
[WD Proxy] Matched '/status' to command name 'getStatus'
[WD Proxy] Proxying [GET /status] to [GET http://192.168.3.100:10101/status] with no body
[WD Proxy] Got response with status 200: {"value":{"message":"WebDriverAgent is ready to accept commands","state":"success","os":{"version":"版本14.3(版号23D56)"},"ready":true,"build":{"time":"Mar 25 2024 19:25:49"}},"sessionId":null}
[WD Proxy] Matched '/session' to command name 'createSession'
[WD Proxy] Proxying [POST /session] to [POST http://192.168.3.100:10101/session] with body: {"capabilities":{"firstMatch":[{}],"alwaysMatch":{"platformName":"Mac","automationName":"Mac2","bundleId":"com.apple.dock","skipAppKill":true,"newCommandTimeout":10,"webDriverAgentMacUrl":"http://192.168.3.100:10101"}}}
[WD Proxy] Got response with status 200: {"value":{"sessionId":"EBE5AD2E-791D-4C68-BC36-B1518F5D8738","capabilities":{"CFBundleIdentifier":"com.apple.dock"}},"sessionId":"EBE5AD2E-791D-4C68-BC36-B1518F5D8738"}
[WD Proxy] Determined the downstream protocol as 'W3C'
[AppiumDriver@ae7b] New Mac2Driver session created successfully, session 58c44a3a-9200-4fbc-ab6c-63a0c429fc4e added to master session list
[AppiumDriver@ae7b] Event 'newSessionStarted' logged at 1711607791247 (14:36:31 GMT+0800 (中国标准时间))
[Mac2Driver@6024 (58c44a3a)] Cached the protocol value 'W3C' for the new session 58c44a3a-9200-4fbc-ab6c-63a0c429fc4e
[Mac2Driver@6024 (58c44a3a)] Responding to client with driver.createSession() result: {"capabilities":{"platformName":"Mac","automationName":"Mac2","bundleId":"com.apple.dock","skipAppKill":true,"newCommandTimeout":10,"webDriverAgentMacUrl":"http://192.168.3.100:10101"}}
[HTTP] <-- POST /session 200 1230 ms - 246
[HTTP]
[HTTP] --> POST /session/58c44a3a-9200-4fbc-ab6c-63a0c429fc4e/execute/sync
[HTTP] {"script":"macos: keys","args":[{"keys":[{"key":"XCUIKeyboardKeyUpArrow","modifierFlags":4}]}]}
[Mac2Driver@6024 (58c44a3a)] Calling AppiumDriver.execute() with args: ["macos: keys",[{"keys":[{"key":"XCUIKeyboardKeyUpArrow","modifierFlags":4}]}],"58c44a3a-9200-4fbc-ab6c-63a0c429fc4e"]
[Mac2Driver] Executing extension command 'macos: keys'
[WD Proxy] Proxying [POST /wda/keys] to [POST http://192.168.3.100:10101/session/EBE5AD2E-791D-4C68-BC36-B1518F5D8738/wda/keys] with body: {"keys":[{"key":"XCUIKeyboardKeyUpArrow","modifierFlags":4}]}
[WD Proxy] Got response with status 200: {"value":null,"sessionId":"EBE5AD2E-791D-4C68-BC36-B1518F5D8738"}
wda output:
t = 735.45s Open com.apple.dock
t = 735.45s Launch com.apple.dock
t = 735.45s Terminate com.apple.dock:79897
t = 736.56s Wait for com.apple.dock to idle
t = 738.65s Type '↑' key (XCUIKeyboardKeyUpArrow) with modifiers '⌃' (0x04)
t = 738.65s Wait for com.apple.dock to idle
t = 738.65s Find the Application 'com.apple.dock'
t = 738.66s Requesting snapshot of accessibility hierarchy for app with pid 79982
t = 738.67s Check for interrupting elements affecting "Dock" Application
t = 738.67s Synthesize event
t = 738.69s Wait for com.apple.dock to idle
shortcut key setting:
The text was updated successfully, but these errors were encountered:
I want to open shcedular center with appium, I use function keys with param {'key': 'XCUIKeyboardKeyUpArrow', 'modifierFlags': 1 << 2}, I have failed. But I can achieve it by pressing the shortcut key directly on the keyboard.
appium log:
[Appium] Attempting to find matching driver for automationName 'Mac2' and platformName 'Mac'
[Appium] The 'mac2' driver was installed and matched caps.
[Appium] Will require it at C:\Users\liangqixing.appium\node_modules\appium-mac2-driver
[Appium] Requiring driver at C:\Users\liangqixing.appium\node_modules\appium-mac2-driver\build\index.js
[AppiumDriver@ae7b] Appium v2.5.1 creating new Mac2Driver (v1.11.0) session
[AppiumDriver@ae7b] Checking BaseDriver versions for Appium and Mac2Driver
[AppiumDriver@ae7b] Appium's BaseDriver version is 9.5.2
[AppiumDriver@ae7b] Mac2Driver's BaseDriver version is 9.5.2
[Mac2Driver@6024] Creating session with W3C capabilities: {
[Mac2Driver@6024] "alwaysMatch": {
[Mac2Driver@6024] "platformName": "Mac",
[Mac2Driver@6024] "appium:automationName": "Mac2",
[Mac2Driver@6024] "appium:bundleId": "com.apple.dock",
[Mac2Driver@6024] "appium:skipAppKill": true,
[Mac2Driver@6024] "appium:newCommandTimeout": 10,
[Mac2Driver@6024] "appium:webDriverAgentMacUrl": "http://192.168.3.100:10101"
[Mac2Driver@6024] },
[Mac2Driver@6024] "firstMatch": [
[Mac2Driver@6024] {}
[Mac2Driver@6024] ]
[Mac2Driver@6024] }
[Mac2Driver@6024 (58c44a3a)] Session created with session id: 58c44a3a-9200-4fbc-ab6c-63a0c429fc4e
[WD Proxy] Matched '/status' to command name 'getStatus'
[WD Proxy] Proxying [GET /status] to [GET http://192.168.3.100:10101/status] with no body
[WD Proxy] Got response with status 200: {"value":{"message":"WebDriverAgent is ready to accept commands","state":"success","os":{"version":"版本14.3(版号23D56)"},"ready":true,"build":{"time":"Mar 25 2024 19:25:49"}},"sessionId":null}
[WD Proxy] Matched '/session' to command name 'createSession'
[WD Proxy] Proxying [POST /session] to [POST http://192.168.3.100:10101/session] with body: {"capabilities":{"firstMatch":[{}],"alwaysMatch":{"platformName":"Mac","automationName":"Mac2","bundleId":"com.apple.dock","skipAppKill":true,"newCommandTimeout":10,"webDriverAgentMacUrl":"http://192.168.3.100:10101"}}}
[WD Proxy] Got response with status 200: {"value":{"sessionId":"EBE5AD2E-791D-4C68-BC36-B1518F5D8738","capabilities":{"CFBundleIdentifier":"com.apple.dock"}},"sessionId":"EBE5AD2E-791D-4C68-BC36-B1518F5D8738"}
[WD Proxy] Determined the downstream protocol as 'W3C'
[AppiumDriver@ae7b] New Mac2Driver session created successfully, session 58c44a3a-9200-4fbc-ab6c-63a0c429fc4e added to master session list
[AppiumDriver@ae7b] Event 'newSessionStarted' logged at 1711607791247 (14:36:31 GMT+0800 (中国标准时间))
[Mac2Driver@6024 (58c44a3a)] Cached the protocol value 'W3C' for the new session 58c44a3a-9200-4fbc-ab6c-63a0c429fc4e
[Mac2Driver@6024 (58c44a3a)] Responding to client with driver.createSession() result: {"capabilities":{"platformName":"Mac","automationName":"Mac2","bundleId":"com.apple.dock","skipAppKill":true,"newCommandTimeout":10,"webDriverAgentMacUrl":"http://192.168.3.100:10101"}}
[HTTP] <-- POST /session 200 1230 ms - 246
[HTTP]
[HTTP] --> POST /session/58c44a3a-9200-4fbc-ab6c-63a0c429fc4e/execute/sync
[HTTP] {"script":"macos: keys","args":[{"keys":[{"key":"XCUIKeyboardKeyUpArrow","modifierFlags":4}]}]}
[Mac2Driver@6024 (58c44a3a)] Calling AppiumDriver.execute() with args: ["macos: keys",[{"keys":[{"key":"XCUIKeyboardKeyUpArrow","modifierFlags":4}]}],"58c44a3a-9200-4fbc-ab6c-63a0c429fc4e"]
[Mac2Driver] Executing extension command 'macos: keys'
[WD Proxy] Proxying [POST /wda/keys] to [POST http://192.168.3.100:10101/session/EBE5AD2E-791D-4C68-BC36-B1518F5D8738/wda/keys] with body: {"keys":[{"key":"XCUIKeyboardKeyUpArrow","modifierFlags":4}]}
[WD Proxy] Got response with status 200: {"value":null,"sessionId":"EBE5AD2E-791D-4C68-BC36-B1518F5D8738"}
wda output:
t = 735.45s Open com.apple.dock
t = 735.45s Launch com.apple.dock
t = 735.45s Terminate com.apple.dock:79897
t = 736.56s Wait for com.apple.dock to idle
t = 738.65s Type '↑' key (XCUIKeyboardKeyUpArrow) with modifiers '⌃' (0x04)
t = 738.65s Wait for com.apple.dock to idle
t = 738.65s Find the Application 'com.apple.dock'
t = 738.66s Requesting snapshot of accessibility hierarchy for app with pid 79982
t = 738.67s Check for interrupting elements affecting "Dock" Application
t = 738.67s Synthesize event
t = 738.69s Wait for com.apple.dock to idle
shortcut key setting:
The text was updated successfully, but these errors were encountered: