feat: add wait until timeout state for navigation
This commit is contained in:
@@ -402,7 +402,7 @@ const handleChangeUrl = async (generator: WorkflowGenerator, page: Page, url: st
|
|||||||
if (url) {
|
if (url) {
|
||||||
await generator.onChangeUrl(url, page);
|
await generator.onChangeUrl(url, page);
|
||||||
try {
|
try {
|
||||||
await page.goto(url);
|
await page.goto(url, { waitUntil: 'networkidle', timeout: 10000 });
|
||||||
logger.log('debug', `Went to ${url}`);
|
logger.log('debug', `Went to ${url}`);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
const { message } = e as Error;
|
const { message } = e as Error;
|
||||||
|
|||||||
Reference in New Issue
Block a user