Skip to content

Commit 9e1ddf9

Browse files
committed
added chromedriver warning
1 parent 5454b28 commit 9e1ddf9

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

Framework/Built_In_Automation/Web/Selenium/BuiltInFunctions.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -576,9 +576,12 @@ def Open_Browser(dependency, window_size_X=None, window_size_Y=None, capability=
576576
elif browser in ("android", "chrome", "chromeheadless"):
577577
from selenium.webdriver.chrome.options import Options
578578
chrome_path = ConfigModule.get_config_value("Selenium_driver_paths", "chrome_path")
579-
# if not chrome_path:
580-
# chrome_path = ChromeDriverManager().install()
581-
# ConfigModule.add_config_value("Selenium_driver_paths", "chrome_path", chrome_path)
579+
try:
580+
if not chrome_path:
581+
chrome_path = ChromeDriverManager().install()
582+
ConfigModule.add_config_value("Selenium_driver_paths", "chrome_path", chrome_path)
583+
except:
584+
CommonUtil.ExecLog(sModuleInfo, "Unable to download chromedriver using ChromedriverManager", 2)
582585
options = Options()
583586

584587
if remote_browser_version:

0 commit comments

Comments
 (0)