microsoft / WinAppDriver

Windows Application Driver
MIT License
3.66k stars 1.4k forks source link

Unable to locate element in UWP app using WinAppDriver #1169

Open krevathi1912 opened 4 years ago

krevathi1912 commented 4 years ago

I am automating UWP app using WinAppdriver along with appium. Elements in the app not identified by winappdriver. Some times the login page elements are detected by winappdriver and sometimes not. This issue occurs frequently for my app. Please let me know what could be the reason. Below are the details Appium version: 1.16.0 Winappdriver version: WinAppDriver version 1.2-RC

Attached the log file. Edited the app name WinAppdriverLog.txt

naeemakram commented 4 years ago

Hi Revathi, I believe you asked the same question in the Q & A section of my Udemy course. We resolved it over there through the following answer: Have you tried to use the "ms:waitForAppLaunch" capability? If no then specify it with five seconds of wait time. i.e. appCapabilities.AddAdditionalCapability("ms:waitForAppLaunch", "5");

Perhaps this issue deserves to be closed. Sincerely, Naeem.