Skip to content

Commit d03ad02

Browse files
committed
[py] put the fix in the wrong place
1 parent 01a47b4 commit d03ad02

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

py/selenium/webdriver/common/selenium_manager.py

+3
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,9 @@ def driver_location(self, browser: str) -> str:
6767
if browser not in allowed:
6868
raise SeleniumManagerException(f"{browser} is not a valid browser. Choose one of: {allowed}")
6969

70+
if browser == 'ie':
71+
browser = 'iexplorer'
72+
7073
binary, flag, browser = str(self.get_binary()), "--browser", browser
7174
result = self.run((binary, flag, browser))
7275
executable = result.split("\t")[-1].strip()

py/selenium/webdriver/common/service.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,7 @@ def start(self) -> None:
9292
if "executable needs to be in PATH" in err.msg:
9393
logger.debug("driver not found in PATH, trying Selenium Manager")
9494
browser = self.__class__.__module__.split(".")[-2]
95-
if browser == 'ie':
96-
browser = 'iexplorer'
95+
9796
try:
9897
path = SeleniumManager().driver_location(browser)
9998
except WebDriverException as new_err:

0 commit comments

Comments
 (0)