mirror of
https://github.com/dgtlmoon/changedetection.io.git
synced 2025-12-08 09:05:36 +00:00
WebDriver fetcher - settings - when an alternative one is configured, show it in the label
This commit is contained in:
@@ -58,11 +58,15 @@ def available_fetchers():
|
|||||||
return p
|
return p
|
||||||
|
|
||||||
class html_webdriver(Fetcher):
|
class html_webdriver(Fetcher):
|
||||||
fetcher_description = "WebDriver Chrome/Javascript"
|
if os.getenv("WEBDRIVER_URL"):
|
||||||
|
fetcher_description = "WebDriver Chrome/Javascript via '{}'".format(os.getenv("WEBDRIVER_URL"))
|
||||||
|
else:
|
||||||
|
fetcher_description = "WebDriver Chrome/Javascript"
|
||||||
|
|
||||||
command_executor = ''
|
command_executor = ''
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.command_executor = os.getenv("WEBDRIVER_URL",'http://browser-chrome:4444/wd/hub')
|
self.command_executor = os.getenv("WEBDRIVER_URL", 'http://browser-chrome:4444/wd/hub')
|
||||||
|
|
||||||
def run(self, url, timeout, request_headers):
|
def run(self, url, timeout, request_headers):
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user