mirror of
https://gitee.com/g1879/DrissionPage.git
synced 2024-12-10 04:00:23 +08:00
4.0.4.8修复reconnect()问题
This commit is contained in:
parent
54bb9f138a
commit
e68b415edd
@ -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'
|
||||||
|
@ -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):
|
||||||
"""处理提示框,可以自动等待提示框出现
|
"""处理提示框,可以自动等待提示框出现
|
||||||
|
Loading…
x
Reference in New Issue
Block a user