File tree 3 files changed +25
-6
lines changed
selenium/webdriver/remote
test/selenium/webdriver/common
3 files changed +25
-6
lines changed Original file line number Diff line number Diff line change @@ -116,3 +116,21 @@ jobs:
116
116
run : |
117
117
bazel test --local_test_jobs 1 --flaky_test_attempts 3 //py:common-${{ matrix.browser }}-bidi
118
118
bazel test --local_test_jobs 1 --flaky_test_attempts 3 //py:test-${{ matrix.browser }}
119
+
120
+ safari-tests :
121
+ name : Browser Tests
122
+ needs : build
123
+ uses : ./.github/workflows/bazel.yml
124
+ strategy :
125
+ fail-fast : false
126
+ matrix :
127
+ include :
128
+ - browser : safari
129
+ os : macos
130
+ with :
131
+ name : Integration Tests (${{ matrix.browser }}, ${{ matrix.os }})
132
+ browser : ${{ matrix.browser }}
133
+ os : ${{ matrix.os }}
134
+ cache-key : py-browser-${{ matrix.browser }}
135
+ run : |
136
+ bazel test --local_test_jobs 1 --flaky_test_attempts 3 //py:test-${{ matrix.browser }}
Original file line number Diff line number Diff line change @@ -1057,6 +1057,12 @@ def start_devtools(self):
1057
1057
raise WebDriverException ("Unable to find url to connect to from capabilities" )
1058
1058
1059
1059
devtools = cdp .import_devtools (version )
1060
+ if self .caps ["browserName" ].lower () == "firefox" :
1061
+ warnings .warn (
1062
+ "CDP support for Firefox is deprecated and will be removed in future versions. Please switch to WebDriver BiDi." ,
1063
+ DeprecationWarning ,
1064
+ stacklevel = 2 ,
1065
+ )
1060
1066
self ._websocket_connection = WebSocketConnection (ws_url )
1061
1067
targets = self ._websocket_connection .execute (devtools .target .get_targets ())
1062
1068
target_id = targets [0 ].target_id
@@ -1127,11 +1133,6 @@ def _get_cdp_details(self):
1127
1133
if _firefox :
1128
1134
# Mozilla Automation Team asked to only support 85
1129
1135
# until WebDriver Bidi is available.
1130
- warnings .warn (
1131
- "CDP support for Firefox is deprecated and will be removed in future versions. Please switch to WebDriver BiDi." ,
1132
- DeprecationWarning ,
1133
- stacklevel = 2 ,
1134
- )
1135
1136
version = 85
1136
1137
else :
1137
1138
version = re .search (r".*/(\d+)\." , browser_version ).group (1 )
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ def test_check_console_messages(driver, pages):
25
25
devtools , connection = driver .start_devtools ()
26
26
console_api_calls = []
27
27
28
- if driver .capabilities ["browserName" ] == "firefox" :
28
+ if driver .caps ["browserName" ]. lower () == "firefox" :
29
29
assert (
30
30
record [0 ].message .args [0 ]
31
31
== "CDP support for Firefox is deprecated and will be removed in future versions. Please switch to WebDriver BiDi."
You can’t perform that action at this time.
0 commit comments