nativescript-dev-appium icon indicating copy to clipboard operation
nativescript-dev-appium copied to clipboard

findElementBy..IfExists does not use the provided timeout.

Open zbranzov opened this issue 6 years ago • 0 comments

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

zbranzov avatar Aug 19 '19 09:08 zbranzov