def waitForSelector(self, selector: str, options: dict = None,
**kwargs: Any) -> Awaitable:
"""Wait for selector matches element."""
if options is None:
options = dict()
options.update(kwargs)
timeout = options.get('timeout', 30_000) # msec
interval = options.get('interval', 0) # msec
return WaitTask(self, 'selector', selector, timeout, interval=interval)
评论列表
文章目录