mirror of
https://gitee.com/g1879/DrissionPage.git
synced 2024-12-10 04:00:23 +08:00
微调
This commit is contained in:
parent
bd88d15d7e
commit
bec1e1473c
@ -9,7 +9,7 @@ from time import sleep, perf_counter
|
|||||||
|
|
||||||
from .._functions.locator import get_loc
|
from .._functions.locator import get_loc
|
||||||
from .._functions.settings import Settings
|
from .._functions.settings import Settings
|
||||||
from ..errors import WaitTimeoutError, NoRectError
|
from ..errors import WaitTimeoutError, NoRectError, ContextLostError
|
||||||
|
|
||||||
|
|
||||||
class OriginWaiter(object):
|
class OriginWaiter(object):
|
||||||
@ -205,9 +205,9 @@ class BaseWaiter(OriginWaiter):
|
|||||||
|
|
||||||
def do():
|
def do():
|
||||||
if arg == 'url':
|
if arg == 'url':
|
||||||
v = self._owner.url
|
v = self._owner._run_cdp('Target.getTargetInfo', targetId=self._owner._target_id)['targetInfo']['url']
|
||||||
elif arg == 'title':
|
elif arg == 'title':
|
||||||
v = self._owner.title
|
v = self._owner._run_cdp('Target.getTargetInfo', targetId=self._owner._target_id)['targetInfo']['title']
|
||||||
else:
|
else:
|
||||||
raise ValueError
|
raise ValueError
|
||||||
if (not exclude and text in v) or (exclude and text not in v):
|
if (not exclude and text in v) or (exclude and text not in v):
|
||||||
|
2
setup.py
2
setup.py
@ -15,7 +15,7 @@ setup(
|
|||||||
long_description_content_type="text/markdown",
|
long_description_content_type="text/markdown",
|
||||||
license="BSD",
|
license="BSD",
|
||||||
keywords="DrissionPage",
|
keywords="DrissionPage",
|
||||||
url="https://gitee.com/g1879/DrissionPage",
|
url="https://DrissionPage.cn",
|
||||||
include_package_data=True,
|
include_package_data=True,
|
||||||
packages=find_packages(),
|
packages=find_packages(),
|
||||||
zip_safe=False,
|
zip_safe=False,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user