Skip to content

Commit

Permalink
[py] use the browser name that selenium-manager binary expects
Browse files Browse the repository at this point in the history
  • Loading branch information
titusfortner committed Dec 2, 2022
1 parent 935226b commit 9d4ec50
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions py/selenium/webdriver/common/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ def start(self) -> None:
if "executable needs to be in PATH" in err.msg:
logger.debug("driver not found in PATH, trying Selenium Manager")
browser = self.__class__.__module__.split(".")[-2]
if browser == 'ie':
browser = 'iexplorer'
try:
path = SeleniumManager().driver_location(browser)
except WebDriverException as new_err:
Expand Down

0 comments on commit 9d4ec50

Please sign in to comment.