to_tab()中的小修改

This commit is contained in:
g1879 2022-11-25 09:36:38 +08:00
parent 6e6a3e3e0f
commit 84e42ee5bc

View File

@ -247,7 +247,7 @@ class ChromiumPage(ChromiumBase):
self._driver.stop()
self._init_page(tab_id)
if read_doc:
if read_doc and self.ready_state == 'complete':
self._get_document()
def close_tabs(self, tab_ids: Union[str, List[str], Tuple[str]] = None, others: bool = False) -> None: