lower default page loading time from 90 seconds to 60 seconds (#4076)
This commit is contained in:
@@ -402,7 +402,7 @@ class ScriptSkyvernPage(SkyvernPage):
|
||||
if context and context.script_mode:
|
||||
print(f"🌐 Navigating to: {url}")
|
||||
|
||||
timeout = kwargs.pop("timeout", settings.BROWSER_ACTION_TIMEOUT_MS)
|
||||
timeout = kwargs.pop("timeout", settings.BROWSER_LOADING_TIMEOUT_MS)
|
||||
await self.page.goto(url, timeout=timeout, **kwargs)
|
||||
|
||||
if context and context.script_mode:
|
||||
|
||||
@@ -93,7 +93,7 @@ class SkyvernPage(Page):
|
||||
return decorator
|
||||
|
||||
async def goto(self, url: str, **kwargs: Any) -> None:
|
||||
timeout = kwargs.pop("timeout", settings.BROWSER_ACTION_TIMEOUT_MS)
|
||||
timeout = kwargs.pop("timeout", settings.BROWSER_LOADING_TIMEOUT_MS)
|
||||
await self.page.goto(url, timeout=timeout, **kwargs)
|
||||
|
||||
######### Public Interfaces #########
|
||||
|
||||
Reference in New Issue
Block a user