Winappdriver: Working with Async code

Created on 28 Mar 2019  路  2Comments  路  Source: microsoft/WinAppDriver

I'm trying to learn WinAppDriver and looking over your Bing examples it looks like you're just waiting a certain amount of time. Is there no better option for Async code? In my UWP app I'm pulling down API code and want showing the results in a grid. How can I instruct WinApDriver to wait until the results return?

Enhancement

Most helpful comment

Agreed, a better option would be to use something like WebDriverWait, and poll for something like the Bing pane being visible or enabled.

All 2 comments

Maybe you could implement a circular wait based on some properties of the grid.

Agreed, a better option would be to use something like WebDriverWait, and poll for something like the Bing pane being visible or enabled.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mdesousa picture mdesousa  路  4Comments

bharathp666 picture bharathp666  路  3Comments

tomw93 picture tomw93  路  4Comments

quincycs picture quincycs  路  3Comments

AmitVerma4HP picture AmitVerma4HP  路  4Comments