fix: Explicitly set executable_path
for Selenium (#7715)
* fix: Explicitly set `executable_path` for Selenium So it finds `geckodriver` again. * Minimize diff * fix: use existing executable_name Co-authored-by: Lars Eggert <lars@eggert.org> --------- Co-authored-by: Robert Sparks <rjsparks@nostrum.com>
This commit is contained in:
parent
c5ca0ea405
commit
363c01e711
|
@ -30,7 +30,7 @@ if skip_selenium:
|
|||
print(" "+skip_message)
|
||||
|
||||
def start_web_driver():
|
||||
service = Service(log_output=f"{executable_name}.log", service_args=['--log-no-truncate'])
|
||||
service = Service(executable_path=f"/usr/bin/{executable_name}", log_output=f"{executable_name}.log", service_args=['--log-no-truncate'])
|
||||
options = Options()
|
||||
options.add_argument("--headless")
|
||||
os.environ["MOZ_REMOTE_SETTINGS_DEVTOOLS"] = "1"
|
||||
|
|
Loading…
Reference in a new issue