Skip to content

findElementBy..IfExists does not use the provided timeout. #250

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
zbranzov opened this issue Aug 19, 2019 · 0 comments
Open

findElementBy..IfExists does not use the provided timeout. #250

zbranzov opened this issue Aug 19, 2019 · 0 comments

Comments

@zbranzov
Copy link
Contributor

zbranzov commented Aug 19, 2019

Describe the bug
Using await this._driver.findElementByAccessibilityIdIfExists("animatedBtn", 5000); does not wait 5 sec for the element. It terminates right away and the api does not have timeout param https://github.com/admc/wd/blob/13ffe77a1a599dcff5dcb8242c003e14cfcab57d/lib/commands.js#L1218
We have to implement it in the wrapper by using the https://github.com/admc/wd/blob/13ffe77a1a599dcff5dcb8242c003e14cfcab57d/lib/commands.js#L1218

Example:
https://github.com/NativeScript/nativescript-angular/blob/master/e2e/animation-examples/e2e/pages/animation-with-options-page.ts#L24

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant