WinAppDriver icon indicating copy to clipboard operation
WinAppDriver copied to clipboard

Does WinAppDriver support waiting for an element visible on UWP?

Open higarry opened this issue 8 years ago • 10 comments

Recently, I am using Appium+WinAppDriver to do UI testing for my UWP applications, but I encountered an issue: I am not able to know when does my APP has done some UI changes, I failed to find some functions like WebDiverWait which is used on WebDriver. So there are some functions like WinDriverWait ? Or do some one has a good way to do this to wait for some element become visible? Thanks

higarry avatar Dec 14 '17 05:12 higarry

Any update?

higarry avatar Dec 19 '17 02:12 higarry

Hi @higarry,

By WebDriverWait, did you mean the explicit wait defined in the Selenium document below? http://www.seleniumhq.org/docs/04_webdriver_advanced.jsp#explicit-waits

If so, such implementation should reside on the local end/client side such as appium-dotnet-driver for C# etc. We should definitely bring this issue up in those repositories. This feature would poll for the expected condition behind the scene using JSON wire protocol commands that Windows Application Driver have already supported.

timotiusmargo avatar Dec 19 '17 22:12 timotiusmargo

hi @timotiusmargo,

Yes, explicit wait is what I mean. I installed Appium package on my desktop, and added the following namespace line: using OpenQA.Selenium.Appium; Like you mentioned, WinAppDriver already supported this, could you please specify the functions? or are there are samples ?

Thanks!

higarry avatar Dec 20 '17 11:12 higarry

Hi @higarry,

Sorry for not being completely clear. Selenium explicit wait requires the client code like appium-dotnet-driver to implement it for you. If your test script is written in C#, you would very likely use appium-dotnet-driver to translate your script to JSON Wire Protocol commands that Windows Application Driver understand. Last time I checked, appium-dotnet-driver is missing support for the explicit wait we talked about. Hence, you should bring this issue up in their GitHub repository. Once it is implemented on appium-dotnet-driver, it will work with Windows Application Driver without any changes needed on our side.

timotiusmargo avatar Dec 21 '17 22:12 timotiusmargo

Marking issue as closed due to no additional comments.

hassanuz avatar Mar 20 '18 20:03 hassanuz

I am also having trouble with waiting for and finding elements. working with c# and WebDriverWait SeleniumExtras.WaitHelpers.ExpectedConditions.ElementExists(By.Name(title) for example is not finding elements if they tend to "pop up" while waiting for them. Is this an issue for appium-dotnet-driver repos or here?

schrdori avatar Nov 18 '19 13:11 schrdori

@schrdori I am facing the sort of similar issue. Did you find any solution to this?

Take-A-Byte avatar Feb 02 '22 10:02 Take-A-Byte

@schrdori I am facing the sort of similar issue. Did you find any solution to this?

Sadly not. A workaround could be to add a manual delay before searching.

but i have stopped working with WinAppDriver 2 years ago due to lack of updates.

schrdori avatar Feb 02 '22 12:02 schrdori

@schrdori what are you using? And how do you like it?

liljohnak avatar Feb 02 '22 14:02 liljohnak

@liljohnak i am using Ranorex. It is pretty expensive but also pretty good. Comes with an already implemented framework and its own IDE. Also fully C# compatible. I like it a lot.

Only thing is thier Support Team, can take quite a while to get a response and sometimes it feels like they didnt really read it… but if you insist you get an answer.

schrdori avatar Feb 03 '22 07:02 schrdori