Skip to content

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

Open

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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