WinAppDriver icon indicating copy to clipboard operation
WinAppDriver copied to clipboard

OpenQA.Selenium.WebDriverException: An unknown error occurred in the remote end while processing the command.

Open azharashra05 opened this issue 4 years ago • 7 comments

Hii

I am unable to run UI Testing testcases for Desktop Application(UWP) which interacts with UI by clicking on some button on interactive self hosted agent.I am able to run those testcases manually on same agent.

Please,provide me feasible solution for this problem asap.

Thanks & Regards Md Azhar Ashraf

azharashra05 avatar Oct 05 '21 06:10 azharashra05

This happens if the Window state is locked.

anunay1 avatar Oct 05 '21 08:10 anunay1

Okay @anunay1,I am getting now different error for all test cases in which we have to launch UI and check something.I am getting error "Fail to locate UI window with appid:X and process id:"X". But I am installing software on the machine using powershell before running test cases.So app will be present on those locations.

azharashra05 avatar Oct 05 '21 08:10 azharashra05

is the app launched successfully in the machine

anunay1 avatar Oct 05 '21 08:10 anunay1

@anunay1,I am running testcases on agent using azure pipeline.I have no idea,app has launched successfully or not.I am able to run testcases manually on same agent successfully.

azharashra05 avatar Oct 05 '21 08:10 azharashra05

after you get this error please create a process list to know whether the app is launched or not. You can do that in the exception block.

It's an ugly solution but you can use for for time being, implement a screen recorder SharpAvi and check what's happening on the machine.

anunay1 avatar Oct 05 '21 08:10 anunay1

If your looking for a screen recorder the WinAppDriver team already has one you can use - https://github.com/microsoft/WinAppDriver/wiki/WinAppDriver-UI-Recorder

hicks86 avatar Oct 12 '21 09:10 hicks86

I am closing this issue

azharashra05 avatar Sep 15 '23 08:09 azharashra05