Skip to content

Commit 7d1d627

Browse files
committed
enable chrome beta
1 parent 2a74c64 commit 7d1d627

File tree

2 files changed

+44
-0
lines changed

2 files changed

+44
-0
lines changed

py/BUILD.bazel

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -534,6 +534,30 @@ py_test_suite(
534534
] + TEST_DEPS,
535535
)
536536

537+
py_test_suite(
538+
name = "test-chrome-beta",
539+
size = "large",
540+
srcs = glob(
541+
[
542+
"test/selenium/webdriver/chrome/**/*.py",
543+
],
544+
exclude = ["test/selenium/webdriver/common/devtools_tests.py"], # see if this correctly excludes
545+
),
546+
args = [
547+
"--instafail",
548+
] + BROWSERS["chrome-beta"]["args"],
549+
data = BROWSERS["chrome-beta"]["data"],
550+
env_inherit = ["DISPLAY"],
551+
tags = [
552+
"no-sandbox",
553+
] + BROWSERS["chrome-beta"]["tags"],
554+
deps = [
555+
":init-tree",
556+
":selenium",
557+
":webserver",
558+
] + TEST_DEPS,
559+
)
560+
537561
py_test_suite(
538562
name = "test-edge",
539563
size = "large",

py/private/browsers.bzl

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
load(
22
"//common:browsers.bzl",
33
"COMMON_TAGS",
4+
"chrome_beta_data",
45
"chrome_data",
56
"edge_data",
67
"firefox_data",
@@ -27,6 +28,20 @@ chrome_args = select({
2728
"//conditions:default": [],
2829
}) + headless_args
2930

31+
chrome_beta_args = select({
32+
"@selenium//common:use_pinned_linux_chrome": [
33+
"--driver-binary=$(location @linux_beta_chromedriver//:chromedriver)",
34+
"--browser-binary=$(location @linux_beta_chrome//:chrome-linux64/chrome)",
35+
"--browser-args=--disable-dev-shm-usage",
36+
"--browser-args=--no-sandbox",
37+
],
38+
"@selenium//common:use_pinned_macos_chrome": [
39+
"--driver-binary=$(location @mac_beta_chromedriver//:chromedriver)",
40+
"--browser-binary=$(location @mac_beta_chrome//:Chrome.app)/Contents/MacOS/Chrome",
41+
],
42+
"//conditions:default": [],
43+
}) + headless_args
44+
3045
edge_args = select({
3146
"@selenium//common:use_pinned_linux_edge": [
3247
"--driver-binary=$(location @linux_edgedriver//:msedgedriver)",
@@ -59,6 +74,11 @@ BROWSERS = {
5974
"data": chrome_data,
6075
"tags": COMMON_TAGS + ["chrome"],
6176
},
77+
"chrome-beta": {
78+
"args": ["--driver=chrome"] + chrome_beta_args,
79+
"data": chrome_beta_data,
80+
"tags": COMMON_TAGS + ["chrome"],
81+
},
6282
"edge": {
6383
"args": ["--driver=edge"] + edge_args,
6484
"data": edge_data,

0 commit comments

Comments
 (0)