mirror of
https://github.com/Second-Hand-Friends/kleinanzeigen-bot.git
synced 2026-03-12 02:31:45 +01:00
Add pydoc to SeleniumMixin.web_open()
This commit is contained in:
committed by
GitHub
parent
529c48f5d1
commit
82f9fed858
@@ -214,6 +214,11 @@ class SeleniumMixin:
|
||||
pause()
|
||||
|
||||
def web_open(self, url, timeout = 10, reload_if_already_open = False) -> None:
|
||||
"""
|
||||
:param url: url to open in browser
|
||||
:param timeout: timeout in seconds
|
||||
:param reload_if_already_open: if False does nothing if the url is already open in the browser
|
||||
"""
|
||||
LOG.debug(" -> Opening [%s]...", url)
|
||||
if not reload_if_already_open and url == self.webdriver.current_url:
|
||||
LOG.debug(" => skipping, [%s] is already open", url)
|
||||
|
||||
Reference in New Issue
Block a user