File tree Expand file tree Collapse file tree 6 files changed +12
-20
lines changed
test/org/openqa/selenium/remote
test/selenium/webdriver/common
rb/spec/integration/selenium/webdriver Expand file tree Collapse file tree 6 files changed +12
-20
lines changed Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff 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" ,
Original file line number Diff line number Diff 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 )
Original file line number Diff line number Diff line change @@ -520,10 +520,13 @@ py_test_suite(
520520py_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" ],
Original file line number Diff line number Diff line change 2121
2222@pytest .mark .xfail_safari
2323@pytest .mark .xfail_firefox
24+ @pytest .mark .xfail_remote
2425def test_check_console_messages (driver , pages ):
2526 with pytest .warns (None ) as record :
2627 devtools , connection = driver .start_devtools ()
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments