Skip to content

Commit

Permalink
tests: Fix invalid escape sequence in path (#1137)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsfehler committed Jan 25, 2023
1 parent b95aa17 commit 5e5af2e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/get_browser.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ def get_browser(browser_name, config=None, **kwargs):
driver_path = os.getenv('EDGEWEBDRIVER')
if driver_path:
from selenium.webdriver.edge.service import Service as EdgeService
service = EdgeService(executable_path=f'{driver_path}\msedgedriver.exe') # NOQA
edgedriver_path = os.path.join(driver_path, 'msedgedriver.exe')
service = EdgeService(executable_path=edgedriver_path)

return Browser('edge', service=service, config=config, **kwargs)

Expand Down

0 comments on commit 5e5af2e

Please sign in to comment.