Compare commits
1 Commits
fix/exit_w
...
codex/fix-
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0e840aea2b |
@@ -964,7 +964,10 @@ class BrowserManager:
|
|||||||
pages = context.pages
|
pages = context.pages
|
||||||
page = next((p for p in pages if p.url == crawlerRunConfig.url), None)
|
page = next((p for p in pages if p.url == crawlerRunConfig.url), None)
|
||||||
if not page:
|
if not page:
|
||||||
page = context.pages[0] # await context.new_page()
|
if pages:
|
||||||
|
page = context.pages[0]
|
||||||
|
else:
|
||||||
|
page = await context.new_page()
|
||||||
else:
|
else:
|
||||||
# Otherwise, check if we have an existing context for this config
|
# Otherwise, check if we have an existing context for this config
|
||||||
config_signature = self._make_config_signature(crawlerRunConfig)
|
config_signature = self._make_config_signature(crawlerRunConfig)
|
||||||
|
|||||||
Reference in New Issue
Block a user