Adding default timeouts of 5s
This commit is contained in:
parent
8c227029dc
commit
09f05d6758
1 changed files with 4 additions and 0 deletions
|
|
@ -10,6 +10,10 @@ export const EmptyPageFactory: FactoryProvider<Page> = {
|
||||||
useFactory: async (runnerService: RunnerService) => {
|
useFactory: async (runnerService: RunnerService) => {
|
||||||
const browser = await runnerService.getBrowser()
|
const browser = await runnerService.getBrowser()
|
||||||
const page = await browser.newPage()
|
const page = await browser.newPage()
|
||||||
|
|
||||||
|
// Default navigation timeout and loading timeout of 5s
|
||||||
|
page.setDefaultNavigationTimeout(5_000)
|
||||||
|
page.setDefaultTimeout(5_000)
|
||||||
|
|
||||||
return page
|
return page
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue