Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improvement: Allow setting custom timeouts #9

Open
homestar9 opened this issue Jan 9, 2023 · 0 comments
Open

Improvement: Allow setting custom timeouts #9

homestar9 opened this issue Jan 9, 2023 · 0 comments

Comments

@homestar9
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant