mirror of
https://github.com/Skyvern-AI/skyvern.git
synced 2026-04-28 03:30:10 +00:00
support to scrape on the chrome error page (#4018)
This commit is contained in:
parent
ce76b400a9
commit
5ead565fd8
1 changed files with 5 additions and 1 deletions
|
|
@ -791,7 +791,11 @@ class BrowserState:
|
|||
return [
|
||||
http_page
|
||||
for http_page in self.browser_context.pages
|
||||
if http_page.url == "about:blank" or urlparse(http_page.url).scheme in ["http", "https"]
|
||||
if (
|
||||
http_page.url == "about:blank"
|
||||
or http_page.url == "chrome-error://chromewebdata/"
|
||||
or urlparse(http_page.url).scheme in ["http", "https"]
|
||||
)
|
||||
]
|
||||
|
||||
async def validate_browser_context(self, page: Page) -> bool:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue