WinAppDriver icon indicating copy to clipboard operation
WinAppDriver copied to clipboard

Not able to find selector after login into windows application

Open mayank-malik-alight opened this issue 2 years ago • 3 comments

Hi, I am new and trying to automate windows application using winapp driver. I am able to launch the application and login into application using winapp driver but after login, getting error below error. I am trying to click the dropdown and menu buttons but didn't perform any action.

POST /session/529CCF05-AAD4-4DAC-9854-717CE02FC38A/element HTTP/1.1 Accept: application/json, image/png Content-Length: 31 Content-Type: application/json;charset=utf-8 Host: 127.0.0.1:4723 User-Agent: selenium/3.141.0 (.net windows) X-Idempotency-Key: 2db284a9-0cd3-4115-bb96-0fe3025090e1

{"using":"name","value":"Join"} HTTP/1.1 404 Not Found Content-Length: 139 Content-Type: application/json

{"status":7,"value":{"error":"no such element","message":"An element could not be located on the page using the given search parameters."}}

mayank-malik-alight avatar Dec 26 '23 19:12 mayank-malik-alight

@mayank-malik-alight use inspect to check if the new window after login is in separate instance, if yes then switch to that instance using native window handle and then find the element.

RakeshDangi-slt avatar Dec 27 '23 12:12 RakeshDangi-slt

@RakeshDangi-slt , I have found everytime Runtime id, automation id and process id getting change, i think that why not able to find selector after login into applicaiton. Any suggestion like how i can handle.

Inspect

mayank-malik-alight avatar Jan 03 '24 20:01 mayank-malik-alight

@mayank-malik-alight please create an xpath with the available unique elements and then try to verify, this will work.

RakeshDangi-slt avatar Jan 04 '24 05:01 RakeshDangi-slt