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;
|
||||||
@@ -514,4 +514,4 @@ const registerInputHandlers = (socket: Socket) => {
|
|||||||
socket.on("action", (data) => onGenerateAction(authSocket, data));
|
socket.on("action", (data) => onGenerateAction(authSocket, data));
|
||||||
};
|
};
|
||||||
|
|
||||||
export default registerInputHandlers;
|
export default registerInputHandlers;
|
||||||
|
|||||||
Reference in New Issue
Block a user