diff --git a/DrissionPage/_units/waiter.py b/DrissionPage/_units/waiter.py index 1559783..e536721 100644 --- a/DrissionPage/_units/waiter.py +++ b/DrissionPage/_units/waiter.py @@ -9,7 +9,7 @@ from time import sleep, perf_counter from .._functions.locator import get_loc from .._functions.settings import Settings -from ..errors import WaitTimeoutError, NoRectError +from ..errors import WaitTimeoutError, NoRectError, ContextLostError class OriginWaiter(object): @@ -205,9 +205,9 @@ class BaseWaiter(OriginWaiter): def do(): if arg == 'url': - v = self._owner.url + v = self._owner._run_cdp('Target.getTargetInfo', targetId=self._owner._target_id)['targetInfo']['url'] elif arg == 'title': - v = self._owner.title + v = self._owner._run_cdp('Target.getTargetInfo', targetId=self._owner._target_id)['targetInfo']['title'] else: raise ValueError if (not exclude and text in v) or (exclude and text not in v): diff --git a/setup.py b/setup.py index de23a28..f79b91f 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ setup( long_description_content_type="text/markdown", license="BSD", keywords="DrissionPage", - url="https://gitee.com/g1879/DrissionPage", + url="https://DrissionPage.cn", include_package_data=True, packages=find_packages(), zip_safe=False,