Skip to content

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

@zbranzov

Description

@zbranzov

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions