WebDriver fetcher - settings - when an alternative one is configured, show it in the label

pull/184/head
dgtlmoon 2021-08-19 16:36:29 +02:00
rodzic a11b6daa2e
commit 4ed5d4c2e7
1 zmienionych plików z 6 dodań i 2 usunięć

Wyświetl plik

@ -58,11 +58,15 @@ def available_fetchers():
return p
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 = ''
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):