4.0.4.8修复reconnect()问题

This commit is contained in:
g1879 2024-03-03 16:28:27 +08:00
parent 54bb9f138a
commit e68b415edd
2 changed files with 3 additions and 1 deletions

View File

@ -14,4 +14,4 @@ from ._configs.chromium_options import ChromiumOptions
from ._configs.session_options import SessionOptions from ._configs.session_options import SessionOptions
__all__ = ['ChromiumPage', 'ChromiumOptions', 'SessionOptions', 'SessionPage', 'WebPage', '__version__'] __all__ = ['ChromiumPage', 'ChromiumOptions', 'SessionOptions', 'SessionPage', 'WebPage', '__version__']
__version__ = '4.0.4.7' __version__ = '4.0.4.8'

View File

@ -867,6 +867,8 @@ class ChromiumBase(BasePage):
sleep(wait) sleep(wait)
self.browser.reconnect() self.browser.reconnect()
self._driver = self.browser._get_driver(t_id, self) self._driver = self.browser._get_driver(t_id, self)
self._driver_init(t_id)
self._get_document()
def handle_alert(self, accept=True, send=None, timeout=None, next_one=False): def handle_alert(self, accept=True, send=None, timeout=None, next_one=False):
"""处理提示框,可以自动等待提示框出现 """处理提示框,可以自动等待提示框出现