Skip to content

Commit

Permalink
fix(geckodriver): also log geckodriver output
Browse files Browse the repository at this point in the history
  • Loading branch information
vringar committed Aug 7, 2023
1 parent 6f05747 commit 1729d39
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions openwpm/deploy_browsers/deploy_firefox.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,15 +137,18 @@ def deploy_firefox(

# Launch the webdriver
status_queue.put(("STATUS", "Launch Attempted", None))
geckodriver_path = subprocess.check_output(
"which geckodriver", encoding="utf-8", shell=True
).strip()

fo.binary = FirefoxBinary(
firefox_path=firefox_binary_path, log_file=open(interceptor.fifo, "w")
)
geckodriver_path = subprocess.check_output(
"which geckodriver", encoding="utf-8", shell=True
).strip()
driver = webdriver.Firefox(
options=fo,
service=Service(executable_path=geckodriver_path),
service=Service(
executable_path=geckodriver_path, log_output=open(interceptor.fifo, "w")
),
)

# Add extension
Expand Down

0 comments on commit 1729d39

Please sign in to comment.