Skip to content

Commit 779b3c5

Browse files
committed
Expand Chrome binary detection on Linux
1 parent 1cdcc5b commit 779b3c5

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

seleniumbase/core/detect_b_ver.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,11 @@ def get_browser_version_from_os(browser_type=None):
116116
OSType.LINUX: linux_browser_apps_to_cmd(
117117
"google-chrome",
118118
"google-chrome-stable",
119+
"chrome",
119120
"google-chrome-beta",
120121
"google-chrome-dev",
122+
"chromium",
123+
"chromium-browser",
121124
),
122125
OSType.MAC: r"/Applications/Google\ Chrome.app"
123126
r"/Contents/MacOS/Google\ Chrome --version",

seleniumbase/undetected/__init__.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -486,10 +486,12 @@ def find_chrome_executable():
486486
for item in os.environ.get("PATH").split(os.pathsep):
487487
for subitem in (
488488
"google-chrome",
489+
"google-chrome-stable",
490+
"chrome",
491+
"google-chrome-beta",
492+
"google-chrome-dev",
489493
"chromium",
490494
"chromium-browser",
491-
"chrome",
492-
"google-chrome-stable",
493495
):
494496
candidates.add(os.sep.join((item, subitem)))
495497
if "darwin" in sys_plat:

0 commit comments

Comments
 (0)