Skip to content

Commit 311abc0

Browse files
w4rgrumhhars
andauthored
Use timeout opt value for browser page.goto (#171)
Co-authored-by: hhars <[email protected]>
1 parent d2ca539 commit 311abc0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/browser/browser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ export class Browser {
175175
this.log.debug('Navigating and waiting for all network requests to finish', 'url', options.url);
176176
}
177177

178-
await page.goto(options.url, { waitUntil: 'networkidle0' });
178+
await page.goto(options.url, { waitUntil: 'networkidle0', timeout: options.timeout * 1000 });
179179

180180
if (this.config.verboseLogging) {
181181
this.log.debug('Waiting for dashboard/panel to load', 'timeout', `${options.timeout}s`);

0 commit comments

Comments
 (0)