mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-04-23 04:23:14 +02:00
Fix waiting for element when using start_load with selector
This commit is contained in:
parent
a9a068aeda
commit
de92beb1ec
1 changed files with 1 additions and 1 deletions
|
|
@ -488,7 +488,7 @@ def start_load(self, url, timeout=default_timeout, selector=None):
|
|||
self.current_form = None
|
||||
self.page.load_url(url)
|
||||
if selector is not None:
|
||||
self.wait_for_element(selector, timeout=timeout, url=url)
|
||||
self.wait_for_element(selector, timeout=timeout)
|
||||
else:
|
||||
self.wait_till_dom_ready(timeout=timeout, url=url)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue