NativeScript/nativescript-dev-appium

findElementBy..IfExists does not use the provided timeout.

zbranzov opened this issue · 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