We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 275426e commit aee181cCopy full SHA for aee181c
skyvern/webeye/browser_factory.py
@@ -657,6 +657,7 @@ async def check_and_fix_state(
657
658
if await self.get_working_page() is None:
659
page: Page | None = None
660
+ use_existing_page = False
661
if browser_address and len(self.browser_context.pages) > 0:
662
pages = [
663
http_page
@@ -665,11 +666,13 @@ async def check_and_fix_state(
665
666
]
667
if len(pages) > 0:
668
page = pages[0]
669
+ use_existing_page = True
670
if page is None:
671
page = await self.browser_context.new_page()
672
673
await self.set_working_page(page, 0)
- await self._close_all_other_pages()
674
+ if not use_existing_page:
675
+ await self._close_all_other_pages()
676
677
if url:
678
await self.navigate_to_url(page=page, url=url)
0 commit comments