Closed kpkulkarni8 closed 1 year ago
@mykola-mokhnach Please help
Please attach the full appium log.
I guess you set webdriver url wtih /wd/hub
in your client while the server was listening /
(did not have /wd/hub
)
@KazuCocoa Thanks for help
But , the specified app is not loading up , instead of that entire desktop is loading and i am not able to inspect the elements
Here is the server logs ----->
[info] [35m[HTTP] [39m Waiting until the server is closed [info] [35m[HTTP] [39m Received server close event [info] [35m[Appium] [39m Welcome to Appium v1.22.2 [info] [35m[Appium] [39m Non-default server args: [info] [35m[Appium] [39m relaxedSecurityEnabled: true [info] [35m[Appium] [39m allowInsecure: { [info] [35m[Appium] [39m } [info] [35m[Appium] [39m denyInsecure: { [info] [35m[Appium] [39m } [info] [35m[Appium] [39m Appium REST http interface listener started on 0.0.0.0:4723[info] [35m[HTTP] [39m [37m--> [39m [37mPOST [39m [37m/wd/hub/session [39m [info] [35m[HTTP] [39m [90m{"capabilities":{"alwaysMatch":{"platformName":"Mac","appium:app":"/Users/kishorkulkarni/Desktop/TestAppMac.app","appium:deviceName":"Mac","appium:newCommandTimeout":3600,"appium:connectHardwareKeyboard":true},"firstMatch":[{}]},"desiredCapabilities":{"platformName":"Mac","appium:app":"/Users/kishorkulkarni/Desktop/TestAppMac.app","appium:deviceName":"Mac","appium:newCommandTimeout":3600,"appium:connectHardwareKeyboard":true}} [39m [debug] [35m[W3C] [39m Calling AppiumDriver.createSession() with args: [{"platformName":"Mac","appium:app":"/Users/kishorkulkarni/Desktop/TestAppMac.app","appium:deviceName":"Mac","appium:newCommandTimeout":3600,"appium:connectHardwareKeyboard":true},null,{"alwaysMatch":{"platformName":"Mac","appium:app":"/Users/kishorkulkarni/Desktop/TestAppMac.app","appium:deviceName":"Mac","appium:newCommandTimeout":3600,"appium:connectHardwareKeyboard":true},"firstMatch":[{}]}] [debug] [35m[BaseDriver] [39m Event 'newSessionRequested' logged at 1648879948623 (11:42:28 GMT+0530 (India Standard Time)) [info] [35m[Appium] [39m Appium v1.22.2 creating new MacDriver (v1.10.2) session [info] [35m[Appium] [39m Applying relaxed security to 'MacDriver' as per server command line argument. All insecure features will be enabled unless explicitly disabled by --deny-insecure [debug] [35m[BaseDriver] [39m W3C capabilities and MJSONWP desired capabilities were provided [debug] [35m[BaseDriver] [39m Creating session with W3C capabilities: { [debug] [35m[BaseDriver] [39m "alwaysMatch": { [debug] [35m[BaseDriver] [39m "platformName": "Mac", [debug] [35m[BaseDriver] [39m "appium:app": "/Users/kishorkulkarni/Desktop/TestAppMac.app", [debug] [35m[BaseDriver] [39m "appium:deviceName": "Mac", [debug] [35m[BaseDriver] [39m "appium:newCommandTimeout": 3600, [debug] [35m[BaseDriver] [39m "appium:connectHardwareKeyboard": true [debug] [35m[BaseDriver] [39m }, [debug] [35m[BaseDriver] [39m "firstMatch": [ [debug] [35m[BaseDriver] [39m {} [debug] [35m[BaseDriver] [39m ] [debug] [35m[BaseDriver] [39m } [warn] [35m[BaseDriver] [39m The following capabilities were provided, but are not recognized by Appium: [warn] [35m[BaseDriver] [39m connectHardwareKeyboard [info] [35m[BaseDriver] [39m Session created with session id: ac892ebd-0e5b-4b05-9bc5-9c235a030f69 [debug] [35m[MacDriver] [39m The path to AppiumForMac server has not been provided explicitly. Trying to autodetect it [info] [35m[MacDriver] [39m Autodetected AppiumForMac server's location at '/Applications/AppiumForMac.app' [info] [35m[MacDriver] [39m Killing any old AppiumForMac[info] [35m[MacDriver] [39m Successfully cleaned up old Appium4Mac servers [info] [35m[MacDriver] [39m Spawning AppiumForMac with: /Applications/AppiumForMac.app [info] [35m[Appium4Mac] [39m [STDERR] 2022-04-02 11:42:28:834 AppiumForMac[6035:103] HTTPServer: Started HTTP server on port 4622 [debug] [35m[WD Proxy] [39m Matched '/session' to command name 'createSession' [debug] [35m[WD Proxy] [39m Proxying [POST /session] to [POST http://127.0.0.1:4622/wd/hub/session] with body: {"desiredCapabilities":{"platformName":"Mac","app":"/Users/kishorkulkarni/Desktop/TestAppMac.app","deviceName":"Mac","newCommandTimeout":3600,"connectHardwareKeyboard":true}}[debug] [35m[WD Proxy] [39m Got response with status 200: {"status":0,"sessionId":"JpoPrEyq","value":{"locationContextEnabled":false,"webStorageEnabled":false,"browserName":"Mac","platform":"Mac","databaseEnabled":false,"version":"10.16","javascriptEnabled":true,"takesScreenshot":true,"nativeEvents":true}} [info] [35m[WD Proxy] [39m Determined the downstream protocol as 'MJSONWP' [info] [35m[MacDriver] [39m Automatically navigating to app '/Users/kishorkulkarni/Desktop/TestAppMac.app' [debug] [35m[WD Proxy] [39m Matched '/url' to command name 'setUrl' [debug] [35m[WD Proxy] [39m Proxying [POST /url] to [POST http://127.0.0.1:4622/wd/hub/session/JpoPrEyq/url] with body: {"url":"/Users/kishorkulkarni/Desktop/TestAppMac.app"}[debug] [35m[WD Proxy] [39m Got response with status 200: {"status":0,"sessionId":"JpoPrEyq","value":null} [info] [35m[Appium] [39m New MacDriver session created successfully, session ac892ebd-0e5b-4b05-9bc5-9c235a030f69 added to master session list [debug] [35m[BaseDriver] [39m Event 'newSessionStarted' logged at 1648879949828 (11:42:29 GMT+0530 (India Standard Time)) [debug] [35m[W3C (ac892ebd)] [39m Cached the protocol value 'W3C' for the new session ac892ebd-0e5b-4b05-9bc5-9c235a030f69 [debug] [35m[W3C (ac892ebd)] [39m Responding to client with driver.createSession() result: {"capabilities":{"platformName":"Mac","app":"/Users/kishorkulkarni/Desktop/TestAppMac.app","deviceName":"Mac","newCommandTimeout":3600,"connectHardwareKeyboard":true}} [info] [35m[HTTP] [39m [37m<-- POST /wd/hub/session [39m [32m200 [39m [90m1210 ms - 227 [39m [info] [35m[HTTP] [39m [90m [39m[info] [35m[HTTP] [39m [37m--> [39m [37mGET [39m [37m/wd/hub/session/ac892ebd-0e5b-4b05-9bc5-9c235a030f69/screenshot [39m [info] [35m[HTTP] [39m [90m{} [39m [info] [35m[W3C (ac892ebd)] [39m Driver proxy active, passing request on via HTTP proxy [debug] [35m[WD Proxy] [39m Matched '/wd/hub/session/ac892ebd-0e5b-4b05-9bc5-9c235a030f69/screenshot' to command name 'getScreenshot' [debug] [35m[WD Proxy] [39m Proxying [GET /wd/hub/session/ac892ebd-0e5b-4b05-9bc5-9c235a030f69/screenshot] to [GET http://127.0.0.1:4622/wd/hub/session/JpoPrEyq/screenshot] with no body[debug] [35m[WD Proxy] [39m Got response with status 200: {"status":0,"sessionId":"JpoPrEyq","value":"iVBORw0KGgoAAAANSUhEUgAAB4AAAAQ4CAYAAADo08FDAAABRGlDQ1BJQ0MgUHJv\r\nZmlsZQAAKJFjYGASSSwoyGFhYGDIzSspCnJ3UoiIjFJgf8bAwsDEwMHAy2CUmFxc\r\n4BgQ4ANUwgCjUcG3awyMIPqyLsgsLbGU5PZ0/cITpVE9aYeSP2GqRwFcKanFyUD6\r\nDxCnJRcUlTAwMKYA2crlJQUgdgeQLVIEdBSQPQfEToewN4DYSRD2EbCakCBnIPsG\r\nkC2QnJEINIPxBZCtk4Qkno7EhtoLAjwurj4+CgFG5oaWHgScSzooSa0oAdHO+QWV\r\nRZnpGSUKjsBQSlXwzEvW01EwMjAyYmAAhTlE9ecb4LBkFONAiKW0MzAYawEFuRBi\r\nWU8YGPZMZ2AQPIUQU88GesuOgeFAZEFiUSLcAYzfWIrTjI0gbO7tDAys0/7//xzO\r\nwMCuycDw9/r//7+3////dxkDA/MtoN5vAKN4Xn3tSQyXAAAAOGVYSWZNTQAqAAAA\r\nCAABh2kABAAAAAEAAAAaAAAAAAACoAIABAAAAAEAAAeAoAMABAAAAAEAAAQ4AAAA\r\nADFOLeoAAEAASURBVHgB1H0FoG1V1e68wKVDSrob6VJAEKURQQSUXxCVUjEACcUG\r\nBURApCWkS0LCoLukQVJauqQb7r3vizHmmmufcwl/n7437z1rzjnGN74Rc66199lr\r\n731G/PKSm8eUgv/RRqgfUUZD5rEVIwAZPWIEZMaOGYOxAGOEHAfHysIBlWMwYMep\r\naeqRc+O7EZXG/ff9OyvG6Pi6I2NMLSNu83d9usq11sRmozwraZnzTn3nwTVyXcao\r\n4LCFMH0kcsSI0RA2LFl/UMobjdpGrIjYh4KQwXHKuJbjQCkaHGRPO+c/IrksAhYD\r\nhCQflZRKtMTSl/gk9aH1n+LEv... [info] [35m[WD Proxy] [39m Replacing sessionId JpoPrEyq with ac892ebd-0e5b-4b05-9bc5-9c235a030f69 [info] [35m[HTTP] [39m [37m<-- GET /wd/hub/session/ac892ebd-0e5b-4b05-9bc5-9c235a030f69/screenshot [39m [32m200 [39m [90m380 ms - 2923603 [39m [info] [35m[HTTP] [39m [90m [39m [info] [35m[HTTP] [39m [37m--> [39m [37mGET [39m [37m/wd/hub/session/ac892ebd-0e5b-4b05-9bc5-9c235a030f69/window/rect [39m [info] [35m[HTTP] [39m [90m{} [39m [info] [35m[W3C (ac892ebd)] [39m Driver proxy active, passing request on via HTTP proxy [debug] [35m[WD Proxy] [39m Matched '/wd/hub/session/ac892ebd-0e5b-4b05-9bc5-9c235a030f69/window/rect' to command name 'getWindowRect' [debug] [35m[WD Proxy] [39m Proxying [GET /wd/hub/session/ac892ebd-0e5b-4b05-9bc5-9c235a030f69/window/rect] to [GET http://127.0.0.1:4622/wd/hub/session/JpoPrEyq/window/rect] with no body [debug] [35m[WD Proxy] [39m Got response with status 200: {"status":9,"sessionId":"JpoPrEyq","value":{"message":"Could not find selector (get_window_rect:) for path '/session/JpoPrEyq/window/rect'."}} [debug] [35m[MJSONWP] [39m Matched JSONWP error code 9 to UnknownCommandError [info] [35m[HTTP] [39m [37m<-- GET /wd/hub/session/ac892ebd-0e5b-4b05-9bc5-9c235a030f69/window/rect [39m [33m404 [39m [90m42 ms - 783 [39m [info] [35m[HTTP] [39m [90m [39m [info] [35m[HTTP] [39m [37m--> [39m [37mGET [39m [37m/wd/hub/session/ac892ebd-0e5b-4b05-9bc5-9c235a030f69/source [39m [info] [35m[HTTP] [39m [90m{} [39m [info] [35m[W3C (ac892ebd)] [39m Driver proxy active, passing request on via HTTP proxy [debug] [35m[WD Proxy] [39m Matched '/wd/hub/session/ac892ebd-0e5b-4b05-9bc5-9c235a030f69/source' to command name 'getPageSource' [debug] [35m[WD Proxy] [39m Proxying [GET /wd/hub/session/ac892ebd-0e5b-4b05-9bc5-9c235a030f69/source] to [GET http://127.0.0.1:4622/wd/hub/session/JpoPrEyq/source] with no body [debug] [35m[WD Proxy] [39m Got response with status 200: {"status":0,"sessionId":"JpoPrEyq","value":"<?xml version=\"1.0\"?>\n"} [info] [35m[WD Proxy] [39m Replacing sessionId JpoPrEyq with ac892ebd-0e5b-4b05-9bc5-9c235a030f69 [info] [35m[HTTP] [39m [37m<-- GET /wd/hub/session/ac892ebd-0e5b-4b05-9bc5-9c235a030f69/source [39m [32m200 [39m [90m6 ms - 88 [39m [info] [35m[HTTP] [39m [90m [39m[info] [35m[HTTP] [39m [37m--> [39m [37mGET [39m [37m/wd/hub/session/ac892ebd-0e5b-4b05-9bc5-9c235a030f69/timeouts [39m [info] [35m[HTTP] [39m [90m{} [39m [info] [35m[W3C (ac892ebd)] [39m Driver proxy active, passing request on via HTTP proxy [debug] [35m[WD Proxy] [39m Matched '/wd/hub/session/ac892ebd-0e5b-4b05-9bc5-9c235a030f69/timeouts' to command name 'getTimeouts' [debug] [35m[WD Proxy] [39m Proxying [GET /wd/hub/session/ac892ebd-0e5b-4b05-9bc5-9c235a030f69/timeouts] to [GET http://127.0.0.1:4622/wd/hub/session/JpoPrEyq/timeouts] with no body [debug] [35m[WD Proxy] [39m Got response with status 200: {"status":9,"sessionId":"JpoPrEyq","value":{"message":"Could not find selector (get_timeouts:) for path '/session/JpoPrEyq/timeouts'."}} [debug] [35m[MJSONWP] [39m Matched JSONWP error code 9 to UnknownCommandError [info] [35m[HTTP] [39m [37m<-- GET /wd/hub/session/ac892ebd-0e5b-4b05-9bc5-9c235a030f69/timeouts [39m [33m404 [39m [90m5 ms - 771 [39m [info] [35m[HTTP] [39m [90m [39m[info] [35m[HTTP] [39m [37m--> [39m [37mGET [39m [37m/wd/hub/session/ac892ebd-0e5b-4b05-9bc5-9c235a030f69/timeouts [39m [info] [35m[HTTP] [39m [90m{} [39m [info] [35m[W3C (ac892ebd)] [39m Driver proxy active, passing request on via HTTP proxy [debug] [35m[WD Proxy] [39m Matched '/wd/hub/session/ac892ebd-0e5b-4b05-9bc5-9c235a030f69/timeouts' to command name 'getTimeouts' [debug] [35m[WD Proxy] [39m Proxying [GET /wd/hub/session/ac892ebd-0e5b-4b05-9bc5-9c235a030f69/timeouts] to [GET http://127.0.0.1:4622/wd/hub/session/JpoPrEyq/timeouts] with no body [debug] [35m[WD Proxy] [39m Got response with status 200: {"status":9,"sessionId":"JpoPrEyq","value":{"message":"Could not find selector (get_timeouts:) for path '/session/JpoPrEyq/timeouts'."}} [debug] [35m[MJSONWP] [39m Matched JSONWP error code 9 to UnknownCommandError [info] [35m[HTTP] [39m [37m<-- GET /wd/hub/session/ac892ebd-0e5b-4b05-9bc5-9c235a030f69/timeouts [39m [33m404 [39m [90m25 ms - 771 [39m [info] [35m[HTTP] [39m [90m [39m
Did you have the log when you set automationName: mac2
?
@KazuCocoa
Please find the logs with automationName : mac2
info] [35m[HTTP] [39m Waiting until the server is closed [info] [35m[HTTP] [39m Received server close event [info] [35m[Appium] [39m Welcome to Appium v1.22.2 [info] [35m[Appium] [39m Non-default server args: [info] [35m[Appium] [39m relaxedSecurityEnabled: true [info] [35m[Appium] [39m allowInsecure: { [info] [35m[Appium] [39m } [info] [35m[Appium] [39m denyInsecure: { [info] [35m[Appium] [39m } [info] [35m[Appium] [39m Appium REST http interface listener started on 0.0.0.0:4723[info] [35m[HTTP] [39m [37m--> [39m [37mGET [39m [37m/wd/hub/sessions [39m [info] [35m[HTTP] [39m [90m{} [39m [debug] [35m[GENERIC] [39m Calling AppiumDriver.getSessions() with args: [] [debug] [35m[GENERIC] [39m Responding to client with driver.getSessions() result: [] [info] [35m[HTTP] [39m [37m<-- GET /wd/hub/sessions [39m [36m304 [39m [90m4 ms - - [39m [info] [35m[HTTP] [39m [90m [39m [info] [35m[HTTP] [39m [37m--> [39m [37mGET [39m [37m/wd/hub/sessions [39m [info] [35m[HTTP] [39m [90m{} [39m [debug] [35m[GENERIC] [39m Calling AppiumDriver.getSessions() with args: [] [debug] [35m[GENERIC] [39m Responding to client with driver.getSessions() result: [] [info] [35m[HTTP] [39m [37m<-- GET /wd/hub/sessions [39m [36m304 [39m [90m1 ms - - [39m [info] [35m[HTTP] [39m [90m [39m[info] [35m[HTTP] [39m [37m--> [39m [37mPOST [39m [37m/wd/hub/session [39m [info] [35m[HTTP] [39m [90m{"capabilities":{"alwaysMatch":{"platformName":"Mac","appium:automationName":"Mac2","appium:app":"/Users/kishorkulkarni/Desktop/TestAppMac.app","appium:deviceName":"Mac","appium:newCommandTimeout":3600,"appium:connectHardwareKeyboard":true},"firstMatch":[{}]},"desiredCapabilities":{"platformName":"Mac","appium:automationName":"Mac2","appium:app":"/Users/kishorkulkarni/Desktop/TestAppMac.app","appium:deviceName":"Mac","appium:newCommandTimeout":3600,"appium:connectHardwareKeyboard":true}} [39m [debug] [35m[W3C] [39m Calling AppiumDriver.createSession() with args: [{"platformName":"Mac","appium:automationName":"Mac2","appium:app":"/Users/kishorkulkarni/Desktop/TestAppMac.app","appium:deviceName":"Mac","appium:newCommandTimeout":3600,"appium:connectHardwareKeyboard":true},null,{"alwaysMatch":{"platformName":"Mac","appium:automationName":"Mac2","appium:app":"/Users/kishorkulkarni/Desktop/TestAppMac.app","appium:deviceName":"Mac","appium:newCommandTimeout":3600,"appium:connectHardwareKeyboard":true},"firstMatch":[{}]}] [debug] [35m[BaseDriver] [39m Event 'newSessionRequested' logged at 1648897740004 (16:39:00 GMT+0530 (India Standard Time)) [info] [35m[Appium] [39m Appium v1.22.2 creating new Mac2Driver (v0.14.1) session [info] [35m[Appium] [39m Applying relaxed security to 'Mac2Driver' as per server command line argument. All insecure features will be enabled unless explicitly disabled by --deny-insecure [debug] [35m[BaseDriver] [39m W3C capabilities and MJSONWP desired capabilities were provided [debug] [35m[BaseDriver] [39m Creating session with W3C capabilities: { [debug] [35m[BaseDriver] [39m "alwaysMatch": { [debug] [35m[BaseDriver] [39m "platformName": "Mac", [debug] [35m[BaseDriver] [39m "appium:automationName": "Mac2", [debug] [35m[BaseDriver] [39m "appium:app": "/Users/kishorkulkarni/Desktop/TestAppMac.app", [debug] [35m[BaseDriver] [39m "appium:deviceName": "Mac", [debug] [35m[BaseDriver] [39m "appium:newCommandTimeout": 3600, [debug] [35m[BaseDriver] [39m "appium:connectHardwareKeyboard": true [debug] [35m[BaseDriver] [39m }, [debug] [35m[BaseDriver] [39m "firstMatch": [ [debug] [35m[BaseDriver] [39m {} [debug] [35m[BaseDriver] [39m ] [debug] [35m[BaseDriver] [39m } [warn] [35m[BaseDriver] [39m The following capabilities were provided, but are not recognized by Appium: [warn] [35m[BaseDriver] [39m app [warn] [35m[BaseDriver] [39m connectHardwareKeyboard [info] [35m[BaseDriver] [39m Session created with session id: 75ee7eb5-42a6-4d8e-9d4e-8cbf6cb7dd7f [debug] [35m[WebDriverAgentMac] [39m Using bootstrap root: /Applications/Appium Server GUI.app/Contents/Resources/app/node_modules/appium/node_modules/appium-mac2-driver/WebDriverAgentMac [debug] [35m[WebDriverAgentMac] [39m Using xcodebuild binary at '/usr/bin/xcodebuild' [info] [35m[WebDriverAgentMac] [39m WebDriverAgent sources are up to date (1644399105000 >= 1644399105000) [debug] [35m[WebDriverAgentMac] [39m Using 127.0.0.1 as server host [debug] [35m[WebDriverAgentMac] [39m Using port 10100 [info] [35m[WebDriverAgentMac] [39m Mac2Driver host process logging is disabled. All the xcodebuild output is going to be suppressed. Set the 'showServerLogs' capability to 'true' if this is an undesired behavior [info] [35m[WebDriverAgentMac] [39m Starting Mac2Driver host process: xcodebuild build-for-testing test-without-building -project '/Applications/Appium Server GUI.app/Contents/Resources/app/node_modules/appium/node_modules/appium-mac2-driver/WebDriverAgentMac/WebDriverAgentMac.xcodeproj' -scheme WebDriverAgentRunner COMPILER_INDEX_STORE_ENABLE\=NO[info] [35m[WD Proxy] [39m connect ECONNREFUSED 127.0.0.1:10100[debug] [35m[WD Proxy] [39m Matched '/status' to command name 'getStatus' [debug] [35m[WD Proxy] [39m Proxying [GET /status] to [GET http://127.0.0.1:10100/status] with no body [info] [35m[WD Proxy] [39m connect ECONNREFUSED 127.0.0.1:10100[debug] [35m[WD Proxy] [39m Matched '/status' to command name 'getStatus' [debug] [35m[WD Proxy] [39m Proxying [GET /status] to [GET http://127.0.0.1:10100/status] with no body [info] [35m[WD Proxy] [39m connect ECONNREFUSED 127.0.0.1:10100[debug] [35m[WD Proxy] [39m Matched '/status' to command name 'getStatus' [debug] [35m[WD Proxy] [39m Proxying [GET /status] to [GET http://127.0.0.1:10100/status] with no body [info] [35m[WD Proxy] [39m connect ECONNREFUSED 127.0.0.1:10100[debug] [35m[WD Proxy] [39m Matched '/status' to command name 'getStatus' [debug] [35m[WD Proxy] [39m Proxying [GET /status] to [GET http://127.0.0.1:10100/status] with no body[debug] [35m[WD Proxy] [39m Got response with status 200: {"value":{"message":"WebDriverAgent is ready to accept commands","state":"success","os":{"version":"Version 12.2.1 (Build 21D62)"},"ready":true,"build":{"time":"Apr 1 2022 20:12:17"}},"sessionId":null} [info] [35m[WebDriverAgentMac] [39m The host process is ready within 4219ms [debug] [35m[WD Proxy] [39m Matched '/session' to command name 'createSession' [debug] [35m[WD Proxy] [39m Proxying [POST /session] to [POST http://127.0.0.1:10100/session] with body: {"capabilities":{"firstMatch":[{}],"alwaysMatch":{"platformName":"Mac","automationName":"Mac2","app":"/Users/kishorkulkarni/Desktop/TestAppMac.app","deviceName":"Mac","newCommandTimeout":3600,"connectHardwareKeyboard":true}}} [debug] [35m[WD Proxy] [39m Got response with status 200: {"value":{"sessionId":"774B8667-B5B0-4C23-A80A-5460DAC06FE7","capabilities":{"CFBundleIdentifier":"com.apple.finder"}},"sessionId":"774B8667-B5B0-4C23-A80A-5460DAC06FE7"} [info] [35m[WD Proxy] [39m Determined the downstream protocol as 'W3C' [info] [35m[Appium] [39m New Mac2Driver session created successfully, session 75ee7eb5-42a6-4d8e-9d4e-8cbf6cb7dd7f added to master session list [debug] [35m[BaseDriver] [39m Event 'newSessionStarted' logged at 1648897744350 (16:39:04 GMT+0530 (India Standard Time)) [debug] [35m[W3C (75ee7eb5)] [39m Cached the protocol value 'W3C' for the new session 75ee7eb5-42a6-4d8e-9d4e-8cbf6cb7dd7f [debug] [35m[W3C (75ee7eb5)] [39m Responding to client with driver.createSession() result: {"capabilities":{"platformName":"Mac","automationName":"Mac2","app":"/Users/kishorkulkarni/Desktop/TestAppMac.app","deviceName":"Mac","newCommandTimeout":3600,"connectHardwareKeyboard":true}} [info] [35m[HTTP] [39m [37m<-- POST /wd/hub/session [39m [32m200 [39m [90m4352 ms - 251 [39m [info] [35m[HTTP] [39m [90m [39m[info] [35m[HTTP] [39m [37m--> [39m [37mGET [39m [37m/wd/hub/session/75ee7eb5-42a6-4d8e-9d4e-8cbf6cb7dd7f/screenshot [39m [info] [35m[HTTP] [39m [90m{} [39m [info] [35m[W3C (75ee7eb5)] [39m Driver proxy active, passing request on via HTTP proxy [debug] [35m[WD Proxy] [39m Matched '/wd/hub/session/75ee7eb5-42a6-4d8e-9d4e-8cbf6cb7dd7f/screenshot' to command name 'getScreenshot' [debug] [35m[WD Proxy] [39m Proxying [GET /wd/hub/session/75ee7eb5-42a6-4d8e-9d4e-8cbf6cb7dd7f/screenshot] to [GET http://127.0.0.1:10100/session/774B8667-B5B0-4C23-A80A-5460DAC06FE7/screenshot] with no body[debug] [35m[WD Proxy] [39m Got response with status 200: {"value":"iVBORw0KGgoAAAANSUhEUgAAB4AAAAQ4CAYAAADo08FDAAABRGlDQ1BJQ0MgUHJv\r\nZmlsZQAAKJFjYGASSSwoyGFhYGDIzSspCnJ3UoiIjFJgf8bAwsDEwMHAy2CUmFxc\r\n4BgQ4ANUwgCjUcG3awyMIPqyLsgsLbGU5PZ0/cITpVE9aYeSP2GqRwFcKanFyUD6\r\nDxCnJRcUlTAwMKYA2crlJQUgdgeQLVIEdBSQPQfEToewN4DYSRD2EbCakCBnIPsG\r\nkC2QnJEINIPxBZCtk4Qkno7EhtoLAjwurj4+CgFG5oaWHgScSzooSa0oAdHO+QWV\r\nRZnpGSUKjsBQSlXwzEvW01EwMjAyYmAAhTlE9ecb4LBkFONAiKW0MzAYawEFuRBi\r\nWU8YGPZMZ2AQPIUQU88GesuOgeFAZEFiUSLcAYzfWIrTjI0gbO7tDAys0/7//xzO\r\nwMCuycDw9/r//7+3////dxkDA/MtoN5vAKN4Xn3tSQyXAAAARGVYSWZNTQAqAAAA\r\nCAACARIAAwAAAAEAAQAAh2kABAAAAAEAAAAmAAAAAAACoAIABAAAAAEAAAeAoAMA\r\nBAAAAAEAAAQ4AAAAANj2mn4AAEAASURBVHgB1H0HoGRFtW0NGYbMkHPOOUeRnBWJ\r\nX0QEEQUVwQComAVBRAQBQXIQQZAoSXLOOeeccw7DzP0r7F2nuu8dQJ//vfdr5p6q\r\n2nvttUPVOd23T3ffYftcdttAKfgfbZj6YWU0ZB5bMQyQ0cOGQWbswADGAgwIORaO\r\nlYUDKgcwYMepaeqRc+O7EZXG/c/7d1aM0fF1R8aYWkbc5u/6dJVrrYnNRnlW0jLn\r\nnfrOg2vkugyo4LCFMH0kctiw0RA2LFl/UMobjdpGrIjYh4KQ/nHKuJZjQSkaHGRP\r\nO+c/LLksAhYDhCQflZRKtMTSl/gk9aH1n+LEfZKOXC02udMu+RpYZ2ClobW... [info] [35m[WD Proxy] [39m Replacing sessionId 774B8667-B5B0-4C23-A80A-5460DAC06FE7 with 75ee7eb5-42a6-4d8e-9d4e-8cbf6cb7dd7f [info] [35m[HTTP] [39m [37m<-- GET /wd/hub/session/75ee7eb5-42a6-4d8e-9d4e-8cbf6cb7dd7f/screenshot [39m [32m200 [39m [90m212 ms - 2477771 [39m [info] [35m[HTTP] [39m [90m [39m [info] [35m[HTTP] [39m [37m--> [39m [37mGET [39m [37m/wd/hub/session/75ee7eb5-42a6-4d8e-9d4e-8cbf6cb7dd7f/window/rect [39m [info] [35m[HTTP] [39m [90m{} [39m [info] [35m[W3C (75ee7eb5)] [39m Driver proxy active, passing request on via HTTP proxy [debug] [35m[WD Proxy] [39m Matched '/wd/hub/session/75ee7eb5-42a6-4d8e-9d4e-8cbf6cb7dd7f/window/rect' to command name 'getWindowRect' [debug] [35m[WD Proxy] [39m Proxying [GET /wd/hub/session/75ee7eb5-42a6-4d8e-9d4e-8cbf6cb7dd7f/window/rect] to [GET http://127.0.0.1:10100/session/774B8667-B5B0-4C23-A80A-5460DAC06FE7/window/rect] with no body [debug] [35m[WD Proxy] [39m Got response with status 200: {"value":{"y":0,"x":0,"width":1920,"height":1080},"sessionId":"774B8667-B5B0-4C23-A80A-5460DAC06FE7"} [info] [35m[WD Proxy] [39m Replacing sessionId 774B8667-B5B0-4C23-A80A-5460DAC06FE7 with 75ee7eb5-42a6-4d8e-9d4e-8cbf6cb7dd7f [info] [35m[HTTP] [39m [37m<-- GET /wd/hub/session/75ee7eb5-42a6-4d8e-9d4e-8cbf6cb7dd7f/window/rect [39m [32m200 [39m [90m39 ms - 101 [39m [info] [35m[HTTP] [39m [90m [39m [info] [35m[HTTP] [39m [37m--> [39m [37mGET [39m [37m/wd/hub/session/75ee7eb5-42a6-4d8e-9d4e-8cbf6cb7dd7f/source [39m [info] [35m[HTTP] [39m [90m{} [39m [info] [35m[W3C (75ee7eb5)] [39m Driver proxy active, passing request on via HTTP proxy [debug] [35m[WD Proxy] [39m Matched '/wd/hub/session/75ee7eb5-42a6-4d8e-9d4e-8cbf6cb7dd7f/source' to command name 'getPageSource' [debug] [35m[WD Proxy] [39m Proxying [GET /wd/hub/session/75ee7eb5-42a6-4d8e-9d4e-8cbf6cb7dd7f/source] to [GET http://127.0.0.1:10100/session/774B8667-B5B0-4C23-A80A-5460DAC06FE7/source] with no body[debug] [35m[WD Proxy] [39m Got response with status 200: {"value":"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<XCUIElementTypeApplication elementType=\"2\" identifier=\"\" label=\"\" title=\"Finder\" enabled=\"false\" selected=\"false\" x=\"0\" y=\"1080\" width=\"0\" height=\"0\">\n <XCUIElementTypeMenuBar elementType=\"55\" identifier=\"_NS:896\" label=\"\" title=\"\" enabled=\"true\" selected=\"false\" x=\"0\" y=\"0\" width=\"1920\" height=\"24\">\n <XCUIElementTypeMenuBarItem elementType=\"56\" identifier=\"\" label=\"\" title=\"Apple\" enabled=\"true\" selected=\"false\" x=\"10\" y=\"0\" width=\"33\" height=\"24\">\n <XCUIElementTypeMenu elementType=\"53\" identifier=\"\" label=\"\" title=\"\" enabled=\"true\" selected=\"false\" x=\"10\" y=\"24\" width=\"264\" height=\"275\">\n <XCUIElementTypeMenuItem elementType=\"54\" identifier=\"\" label=\"\" title=\"About This Mac\" enabled=\"true\" selected=\"false\" x=\"0\" y=\"0\" width=\"264\" height=\"22\"/>\n <XCUIElementTypeMenuItem elementType=\"54\" identifier=\"\" label=\"\" title=\"Sy... [info] [35m[WD Proxy] [39m Replacing sessionId 774B8667-B5B0-4C23-A80A-5460DAC06FE7 with 75ee7eb5-42a6-4d8e-9d4e-8cbf6cb7dd7f [info] [35m[HTTP] [39m [37m<-- GET /wd/hub/session/75ee7eb5-42a6-4d8e-9d4e-8cbf6cb7dd7f/source [39m [32m200 [39m [90m263 ms - 66144 [39m [info] [35m[HTTP] [39m [90m [39m[info] [35m[HTTP] [39m [37m--> [39m [37mGET [39m [37m/wd/hub/session/75ee7eb5-42a6-4d8e-9d4e-8cbf6cb7dd7f/timeouts [39m [info] [35m[HTTP] [39m [90m{} [39m [debug] [35m[W3C (75ee7eb5)] [39m Calling AppiumDriver.getTimeouts() with args: ["75ee7eb5-42a6-4d8e-9d4e-8cbf6cb7dd7f"] [debug] [35m[W3C (75ee7eb5)] [39m Responding to client with driver.getTimeouts() result: {"command":3600000,"implicit":0} [info] [35m[HTTP] [39m [37m<-- GET /wd/hub/session/75ee7eb5-42a6-4d8e-9d4e-8cbf6cb7dd7f/timeouts [39m [32m200 [39m [90m5 ms - 42 [39m [info] [35m[HTTP] [39m [90m [39m[info] [35m[HTTP] [39m [37m--> [39m [37mGET [39m [37m/wd/hub/session/75ee7eb5-42a6-4d8e-9d4e-8cbf6cb7dd7f/timeouts [39m [info] [35m[HTTP] [39m [90m{} [39m [debug] [35m[W3C (75ee7eb5)] [39m Calling AppiumDriver.getTimeouts() with args: ["75ee7eb5-42a6-4d8e-9d4e-8cbf6cb7dd7f"] [debug] [35m[W3C (75ee7eb5)] [39m Responding to client with driver.getTimeouts() result: {"command":3600000,"implicit":0} [info] [35m[HTTP] [39m [37m<-- GET /wd/hub/session/75ee7eb5-42a6-4d8e-9d4e-8cbf6cb7dd7f/timeouts [39m [36m304 [39m [90m10 ms - - [39m [info] [35m[HTTP] [39m [90m [39m[info] [35m[HTTP] [39m [37m--> [39m [37mGET [39m [37m/wd/hub/session/75ee7eb5-42a6-4d8e-9d4e-8cbf6cb7dd7f/timeouts [39m [info] [35m[HTTP] [39m [90m{} [39m [debug] [35m[W3C (75ee7eb5)] [39m Calling AppiumDriver.getTimeouts() with args: ["75ee7eb5-42a6-4d8e-9d4e-8cbf6cb7dd7f"] [debug] [35m[W3C (75ee7eb5)] [39m Responding to client with driver.getTimeouts() result: {"command":3600000,"implicit":0} [info] [35m[HTTP] [39m [37m<-- GET /wd/hub/session/75ee7eb5-42a6-4d8e-9d4e-8cbf6cb7dd7f/timeouts [39m [36m304 [39m [90m1 ms - - [39m [info] [35m[HTTP] [39m [90m [39m[info] [35m[HTTP] [39m [37m--> [39m [37mGET [39m [37m/wd/hub/session/75ee7eb5-42a6-4d8e-9d4e-8cbf6cb7dd7f/timeouts [39m [info] [35m[HTTP] [39m [90m{} [39m [debug] [35m[W3C (75ee7eb5)] [39m Calling AppiumDriver.getTimeouts() with args: ["75ee7eb5-42a6-4d8e-9d4e-8cbf6cb7dd7f"] [debug] [35m[W3C (75ee7eb5)] [39m Responding to client with driver.getTimeouts() result: {"command":3600000,"implicit":0} [info] [35m[HTTP] [39m [37m<-- GET /wd/hub/session/75ee7eb5-42a6-4d8e-9d4e-8cbf6cb7dd7f/timeouts [39m [36m304 [39m [90m3 ms - - [39m [info] [35m[HTTP] [39m [90m [39m[info] [35m[HTTP] [39m [37m--> [39m [37mGET [39m [37m/wd/hub/session/75ee7eb5-42a6-4d8e-9d4e-8cbf6cb7dd7f/timeouts [39m [info] [35m[HTTP] [39m [90m{} [39m [debug] [35m[W3C (75ee7eb5)] [39m Calling AppiumDriver.getTimeouts() with args: ["75ee7eb5-42a6-4d8e-9d4e-8cbf6cb7dd7f"] [debug] [35m[W3C (75ee7eb5)] [39m Responding to client with driver.getTimeouts() result: {"command":3600000,"implicit":0} [info] [35m[HTTP] [39m [37m<-- GET /wd/hub/session/75ee7eb5-42a6-4d8e-9d4e-8cbf6cb7dd7f/timeouts [39m [36m304 [39m [90m2 ms - - [39m [info] [35m[HTTP] [39m [90m [39m
[warn] [35m[BaseDriver] [39m The following capabilities were provided, but are not recognized by Appium: [warn] [35m[BaseDriver] [39m app [warn] [35m[BaseDriver] [39m connectHardwareKeyboard
https://github.com/appium/appium-mac2-driver#capabilities
app
capability does not work on this driver. Please specify appium:bundleId
to launch it on the machine.
@KazuCocoa Still not working , its taking extra desired capability - appium:connectHardwareKeyboard": true
Even though i have not provided it while launching app via inspector
logs ----->
[W3C] Calling AppiumDriver.createSession() with args: [{"platformName":"Mac","appium:automationName":"Mac2","appium:bundleId":"com.rings.TestAppMac","appium:deviceName":"Mac","appium:newCommandTimeout":3600,"appium:connectHardwareKeyboard":true},null,{"alwaysMatch":{"platformName":"Mac","appium:automationName":"Mac2","appium:bundleId":"com.rings.TestAppMac","appium:deviceName":"Mac","appium:newCommandTimeout":3600,"appium:connectHardwareKeyboard":true},"firstMatch":[{}]}] [BaseDriver] Event 'newSessionRequested' logged at 1648966125185 (11:38:45 GMT+0530 (India Standard Time)) [Appium] Appium v1.22.2 creating new Mac2Driver (v0.14.1) session [Appium] Applying relaxed security to 'Mac2Driver' as per server command line argument. All insecure features will be enabled unless explicitly disabled by --deny-insecure [BaseDriver] W3C capabilities and MJSONWP desired capabilities were provided [BaseDriver] Creating session with W3C capabilities: { [BaseDriver] "alwaysMatch": { [BaseDriver] "platformName": "Mac", [BaseDriver] "appium:automationName": "Mac2", [BaseDriver] "appium:bundleId": "com.rings.TestAppMac", [BaseDriver] "appium:deviceName": "Mac", [BaseDriver] "appium:newCommandTimeout": 3600, [BaseDriver] "appium:connectHardwareKeyboard": true [BaseDriver] }, [BaseDriver] "firstMatch": [ [BaseDriver] {} [BaseDriver] ] [BaseDriver] } [BaseDriver] The following capabilities were provided, but are not recognized by Appium: [BaseDriver] connectHardwareKeyboard [BaseDriver] Session created with session id: 912d37d1-cbb5-42e9-aedc-65c4d3e2eca9 [WebDriverAgentMac] The host process has already been listening. Proceeding with session creation [WD Proxy] Matched '/session' to command name 'createSession' [WD Proxy] Proxying [POST /session] to [POST http://127.0.0.1:10100/session] with body: {"capabilities":{"firstMatch":[{}],"alwaysMatch":{"platformName":"Mac","automationName":"Mac2","bundleId":"com.ringa.TestAppMac","deviceName":"Mac","newCommandTimeout":3600,"connectHardwareKeyboard":true}}} [WD Proxy] Got response with status 500: {"value":{"error":"unknown error","message":"The app representing com.ringa.TestAppMac could not be found.","traceback":"(\n\t0 CoreFoundation 0x00007ff81e5076cb exceptionPreprocess + 242\n\t1 libobjc.A.dylib 0x00007ff81e269dce objc_exception_throw + 48\n\t2 Foundation 0x00007ff81f2e4203 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 267\n\t3 XCUIAutomation 0x000000010d329b12 -[XCUIApplication commonInitWithApplicationSpecifier:device:] + 2427\n\t4 XCUIAutomation 0x000000010d328ae0 -[XCUIApplication initWithBundleIdentifier:] + 170\n\t5 WebDriverAgentLib 0x000000010e322ec2 +[FBSessionCommands handleCreateSession:] + 850\n\t6 WebDriverAgentLib 0x000000010e32795c -[FBRoute_TargetAction mountRequest:intoResponse:] + 172\n\t7 WebDriverAgentLib 0x000000010e321768 37-[FBWebServer registerRouteH... [W3C] Matched W3C error code 'unknown error' to UnknownError [WD Proxy] Matched '/session/774B8667-B5B0-4C23-A80A-5460DAC06FE7' to command name 'deleteSession' [WD Proxy] Proxying [DELETE /session/774B8667-B5B0-4C23-A80A-5460DAC06FE7] to [DELETE http://127.0.0.1:10100/session/774B8667-B5B0-4C23-A80A-5460DAC06FE7] with no body [WD Proxy] Got response with status 404: {"value":{"error":"invalid session id","message":"Session does not exist","traceback":"(\n\t0 CoreFoundation 0x00007ff81e5076cb exceptionPreprocess + 242\n\t1 libobjc.A.dylib 0x00007ff81e269dce objc_exception_throw + 48\n\t2 CoreFoundation 0x00007ff81e5300ce -[NSException raise] + 9\n\t3 WebDriverAgentLib 0x000000010e328586 -[FBRoute raiseNoSessionException] + 86\n\t4 WebDriverAgentLib 0x000000010e3284d3 -[FBRoute decorateRequest:] + 259\n\t5 WebDriverAgentLib 0x000000010e32790a -[FBRoute_TargetAction mountRequest:intoResponse:] + 90\n\t6 WebDriverAgentLib 0x000000010e321768 37-[FBWebServer registerRouteHandlers:]_block_invoke + 776\n\t7 WebDriverAgentLib 0x000000010e31ae5d -[RoutingHTTPServer handleRoute:withRequest:response:] + 189\n\t8 WebDriverAgentLib 0x000000010e31bba1 __72-[RoutingHTTPServer routeMethod:withPat... [W3C] Matched W3C error code 'invalid session id' to NoSuchDriverError [WebDriverAgentMac] Mac2Driver session cannot be deleted. Original error: Session does not exist [BaseDriver] Event 'newSessionStarted' logged at 1648966125215 (11:38:45 GMT+0530 (India Standard Time)) [W3C] Encountered internal error running command: UnknownError: An unknown server-side error occurred while processing the command. Original error: The app representing com.rings.TestAppMac could not be found. [W3C] at errorFromW3CJsonCode (/Applications/Appium Server GUI.app/Contents/Resources/app/node_modules/appium/node_modules/appium-base-driver/lib/protocol/errors.js:780:25) [W3C] at ProxyRequestError.getActualError (/Applications/Appium Server GUI.app/Contents/Resources/app/node_modules/appium/node_modules/appium-base-driver/lib/protocol/errors.js:663:14) [W3C] at WDAMacProxy.command (/Applications/Appium Server GUI.app/Contents/Resources/app/node_modules/appium/node_modules/appium-base-driver/lib/jsonwp-proxy/proxy.js:272:19) [W3C] at processTicksAndRejections (internal/process/task_queues.js:85:5) [HTTP] <-- POST /wd/hub/session 500 32 ms - 981
appium:connectHardwareKeyboard is added by the inspector. Appium drivers ignores such unsupported capabilities, so it does not matter.
The app representing com.ringa.TestAppMac could not be found
This is the reason.
@KazuCocoa I am getting this
osascript -e 'id of app "TestAppMac"' com.rings.TestAppMac
And passing the same
Typo? or did you modify when you pasted the log?, com.rings.TestAppMac or com.ringa.TestAppMac
[WD Proxy] Proxying [POST /session] to [POST http://127.0.0.1:10100/session] with body: {"capabilities":{"firstMatch":[{}],"alwaysMatch":{"platformName":"Mac","automationName":"Mac2","bundleId":"com.ringa.TestAppMac","deviceName":"Mac","newCommandTimeout":3600,"connectHardwareKeyboard":true}}} [WD Proxy] Got response with status 500: {"value":{"error":"unknown error","message":"The app representing com.ringa.TestAppMac could not be found.","traceback":"(\n\t0 CoreFoundation 0x00007ff81e5076cb __exceptionPreprocess + 242\n\t1 libobjc.A.dylib 0x00007ff81e269dce objc_exception_throw + 48\n\t2 Foundation
this driver's endpoint is https://developer.apple.com/documentation/xctest/xcuiapplication/1500467-launch?language=objc or https://developer.apple.com/documentation/xctest/xcuiapplication/2873317-activate?language=objc , so it possibly XCTest framework (by Apple) could not find it. Then, appium can do nothing, unfortunately.
Hi ,
I am new to appium Mac2 - mac os app automation
I have installed appium and appium inspector
and passing the following in the desired capabilities -
platformName : "mac" automationName : "mac2" blundleId : "com.apple.calculator"
But i am not able to launch app
No route found for /session
Error is observed on the server
Please help me with this , i want to automated the mac os app