Skip to content

toBeDisplayed() not respecting Webdriverio's waitForTimeout or waitForInterval #2020

@mak941

Description

@mak941

Unless a new options object is passed directly as an argument to the toBeDisplayed() function the test will fail when having to wait longer than the default of 2000 milliseconds. Even after setting the waitForTimeout explicitly to 60000 milliseconds inside our wdio.base.conf.ts.

This works: await expect($('android=new UiSelector().text(\"placeholder dummy text\")')).toBeDisplayed({ wait: 60000 });

Or this works:
toBeDisplayed.js

Image

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