No results for

Powered byAlgolia

setDefaultNavigationTimeout(timeout)

warning

See issue #445 for details of a known issue.

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');