Skip to content

Improvement: Allow setting custom timeouts #9

@homestar9

Description

@homestar9

It would be great when running any of the wait functions like waitForUrl() if you could pass in a timeout as an argument which would then be passed to the options argument.

Currently the best way I can think of to extend the timeout is to update the page object like this:

page.setDefaultTimeout( 60000 ); // set default timeout to 60 seconds

The only downside of the workaround is that it sets the default timeout for everything. There may be instances where you want to use the standard timeout for most behavior, but submitting a page may require a longer timeout than the default.

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