OpenQA.Selenium.WebDriverException: An unknown error occurred in the remote end while processing the command.
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
This happens if the Window state is locked.
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.
is the app launched successfully in the machine
@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.
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.
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
I am closing this issue