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

How to increase timeout for playwright #56

Open
wangjia007bond opened this issue Aug 16, 2022 · 3 comments
Open

How to increase timeout for playwright #56

wangjia007bond opened this issue Aug 16, 2022 · 3 comments

Comments

@wangjia007bond
Copy link

Hi There,

I am runing playwright in AWS lambda using this package, it is great.
The page which I testing is very slow, how can I increase the default timeout, so that I still wait for the page loading.
Timeout 30000ms exceeded.

@joekendal
Copy link

If you're seeing this error and it shouldn't take 30 seconds then you need to increase the Lambda memory size to a minimum of 512MB

@perrefe
Copy link

perrefe commented Apr 14, 2023

Hi, what about setting a global timeout config on the playwright side? I didn't get how to accomplish this. I've seen a timeoutSettings.js on playwrgiht-core but I don't really understand how to use it.

@perrefe
Copy link

perrefe commented Apr 14, 2023

I just figured out!

      const context = await browser.newContext();
      context.setDefaultTimeout(5000);

Hi, what about setting a global timeout config on the playwright side? I didn't get how to accomplish this. I've seen a timeoutSettings.js on playwrgiht-core but I don't really understand how to use it.

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

3 participants