microsoft / WinAppDriver

Windows Application Driver
MIT License
3.7k stars 1.41k forks source link

Facing issue while trying to use winappdriver old code #1929

Open fastinggirl opened 1 year ago

fastinggirl commented 1 year ago

POST /wd/hub/session HTTP/1.1 Accept: / Content-Length: 237 Content-Type: application/json; charset=utf-8 Host: 192.168.1.30:4723 User-Agent: appium/8.5.1 (selenium/4.10.0 (java mac)) X-Idempotency-Key: f43a3749-61cf-4657-b9be-646c4550b14b { "capabilities": { "firstMatch": [ { } ], "alwaysMatch": { "appium:app": "Root", "appium:automationName": "Windows", "appium:deviceName": "Android", "platformName": "windows" } } } HTTP/1.1 400 Bad Request Content-Length: 141 Content-Type: application/json {"status":100,"value":{"error":"invalid argument","message":"Bad capabilities. Specify either app or appTopLevelWindow to create a session"}}

Shakevg commented 1 year ago

fastinggirl Please post code example

anunay1 commented 1 year ago

Selenium 4 is not supported yet.