I have a K6 browser script which seems to disconnect after a period of time, for example when the login takes too long. I would like to be able to set a global timeout for the script. Is this possible?
Hi @pbains1!
Thank you for your question. You can specify a timeout by passing in the timeout
option when you launch a browser. By default, this is set to ā30sā.
const browser = chromium.launch({
headless: false,
timeout: '60s', // Or whatever time you want to define
});
Feel free to check out launch([options]) for more information.
2 Likes
Thanks! That seems to work.
1 Like