Skip to content

Commit d0e45b7

Browse files
authored
Merge branch 'trunk' into remove_network_connection
2 parents 226e931 + 4faf5ba commit d0e45b7

File tree

6 files changed

+12
-20
lines changed

6 files changed

+12
-20
lines changed

java/src/org/openqa/selenium/devtools/CdpEndpointFinder.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -89,14 +89,6 @@ public static Optional<URI> getReportedUri(Capabilities caps) {
8989
case "msedge":
9090
key = "ms:edgeOptions";
9191
break;
92-
case "firefox":
93-
key = "moz:debuggerAddress";
94-
if (!caps.is("webSocketUrl")) {
95-
LOG.warning(
96-
"CDP support for Firefox is deprecated and will be removed in future versions. "
97-
+ "Please switch to WebDriver BiDi.");
98-
}
99-
break;
10092
default:
10193
return Optional.empty();
10294
}

java/src/org/openqa/selenium/firefox/BUILD.bazel

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ java_export(
1313
deps = [
1414
"//java:auto-service",
1515
"//java/src/org/openqa/selenium/bidi",
16-
"//java/src/org/openqa/selenium/devtools/v85",
1716
"//java/src/org/openqa/selenium/json",
1817
"//java/src/org/openqa/selenium/manager",
1918
"//java/src/org/openqa/selenium/remote",

java/test/org/openqa/selenium/remote/RemoteWebDriverBuilderTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -490,13 +490,13 @@ public URL getUrl() {
490490
SESSION_ID,
491491
"capabilities",
492492
new ImmutableCapabilities(
493-
"firefox", "caps",
494-
"browserName", "firefox",
495-
"moz:debuggerAddress", uri.toString())))));
493+
"chrome", "caps",
494+
"browserName", "chrome",
495+
"goog:chromeOptions", uri.toString())))));
496496

497497
WebDriver driver =
498498
RemoteWebDriver.builder()
499-
.oneOf(new FirefoxOptions())
499+
.oneOf(new ChromeOptions())
500500
.withDriverService(service)
501501
.augmentUsing(new Augmenter())
502502
.connectingWith(config -> req -> response)

py/BUILD.bazel

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -520,10 +520,13 @@ py_test_suite(
520520
py_test_suite(
521521
name = "test-firefox",
522522
size = "large",
523-
srcs = glob([
524-
"test/selenium/webdriver/marionette/**/*.py",
525-
"test/selenium/webdriver/firefox/**/*.py",
526-
]),
523+
srcs = glob(
524+
[
525+
"test/selenium/webdriver/marionette/**/*.py",
526+
"test/selenium/webdriver/firefox/**/*.py",
527+
],
528+
exclude = ["test/selenium/webdriver/common/devtools_tests.py"],
529+
),
527530
args = [
528531
"--instafail",
529532
] + BROWSERS["firefox"]["args"],

py/test/selenium/webdriver/common/devtools_tests.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121

2222
@pytest.mark.xfail_safari
2323
@pytest.mark.xfail_firefox
24+
@pytest.mark.xfail_remote
2425
def test_check_console_messages(driver, pages):
2526
with pytest.warns(None) as record:
2627
devtools, connection = driver.start_devtools()

rb/spec/integration/selenium/webdriver/devtools_spec.rb

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,6 @@ module WebDriver
112112
expect(logs).to include(
113113
an_object_having_attributes(type: :log, args: [hash_including('type' => 'object')])
114114
)
115-
expect(logs).to include(
116-
an_object_having_attributes(type: :log, args: [hash_including('location')])
117-
)
118115
end
119116

120117
it 'notifies about exceptions' do

0 commit comments

Comments
 (0)