No results for

Powered byAlgolia

setDefaultNavigationTimeout(timeout)

attention

This feature has known issues. For details, refer to #445.

Sets the default maximum navigation timeout for Page.goto().

ParameterTypeDefaultDescription
timeoutnumberDependent on the action.The timeout in milliseconds.

Example

const context = browser.newContext();
const page = context.newPage();
context.setDefaultNavigationTimeout(1000); // 1s
page
.goto('https://httpbin.test.k6.io/delay/5', {
waitUntil: 'networkidle',
})
.finally(() => {
page.close();
browser.close();
});