This commit is contained in:
g1879 2024-09-02 18:05:58 +08:00
parent bd88d15d7e
commit bec1e1473c
2 changed files with 4 additions and 4 deletions

View File

@ -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):

View File

@ -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,