Skip to content

Commit ab520a3

Browse files
authored
Merge branch 'SeleniumHQ:trunk' into py-selenium-manager-arm-support
2 parents 8820950 + e7416fe commit ab520a3

File tree

2 files changed

+47
-2
lines changed

2 files changed

+47
-2
lines changed

py/BUILD.bazel

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,8 @@ BIDI_TESTS = glob(["test/selenium/webdriver/common/**/*bidi*_tests.py"])
453453
"test/selenium/webdriver/common/**/*.py",
454454
"test/selenium/webdriver/support/**/*.py",
455455
],
456-
exclude = BIDI_TESTS + ["test/selenium/webdriver/common/print_pdf_tests.py"],
456+
exclude = BIDI_TESTS + ["test/selenium/webdriver/common/print_pdf_tests.py"] +
457+
(["test/selenium/webdriver/common/devtools_tests.py"] if browser == "chrome-beta" else []),
457458
),
458459
args = [
459460
"--instafail",
@@ -479,7 +480,8 @@ BIDI_TESTS = glob(["test/selenium/webdriver/common/**/*bidi*_tests.py"])
479480
"test/selenium/webdriver/common/**/*.py",
480481
"test/selenium/webdriver/support/**/*.py",
481482
],
482-
exclude = ["test/selenium/webdriver/common/print_pdf_tests.py"],
483+
exclude = ["test/selenium/webdriver/common/print_pdf_tests.py"] +
484+
(["test/selenium/webdriver/common/devtools_tests.py"] if browser == "chrome-beta" else []),
483485
),
484486
args = [
485487
"--instafail",
@@ -546,6 +548,29 @@ py_test_suite(
546548
] + TEST_DEPS,
547549
)
548550

551+
py_test_suite(
552+
name = "test-chrome-beta",
553+
size = "large",
554+
srcs = glob(
555+
[
556+
"test/selenium/webdriver/chrome/**/*.py",
557+
],
558+
),
559+
args = [
560+
"--instafail",
561+
] + BROWSERS["chrome-beta"]["args"],
562+
data = BROWSERS["chrome-beta"]["data"],
563+
env_inherit = ["DISPLAY"],
564+
tags = [
565+
"no-sandbox",
566+
] + BROWSERS["chrome-beta"]["tags"],
567+
deps = [
568+
":init-tree",
569+
":selenium",
570+
":webserver",
571+
] + TEST_DEPS,
572+
)
573+
549574
py_test_suite(
550575
name = "test-edge",
551576
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)