Skip to content

Commit f094308

Browse files
committed
fix: store the opened tab in the _tabs_opened dictionary
1 parent 06a8d67 commit f094308

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pydoll/browser/chromium/base.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,7 @@ async def new_tab(self, url: str = '', browser_context_id: Optional[str] = None)
250250
)
251251
target_id = response['result']['targetId']
252252
tab = Tab(self, **self._get_tab_kwargs(target_id, browser_context_id))
253+
self._tabs_opened[target_id] = tab
253254
if url:
254255
await tab.go_to(url)
255256
return tab

0 commit comments

Comments
 (0)