Skip to content

Commit 6a1cce6

Browse files
committed
Prevent issue caused by running Selenium via cron jobs
1 parent 5ba8284 commit 6a1cce6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

seleniumbase/core/browser_launcher.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2128,6 +2128,10 @@ def _set_chrome_options(
21282128
binary_loc = detect_b_ver.get_binary_location(br_app, True)
21292129
if os.path.exists(binary_loc):
21302130
binary_location = binary_loc
2131+
elif os.path.exists("/usr/bin/google-chrome-stable"):
2132+
binary_location = "/usr/bin/google-chrome-stable"
2133+
elif os.path.exists("/usr/bin/google-chrome"):
2134+
binary_location = "/usr/bin/google-chrome"
21312135
extra_disabled_features = []
21322136
if chromium_arg:
21332137
# Can be a comma-separated list of Chromium args or a list

0 commit comments

Comments
 (0)