File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
java/src/org/openqa/selenium Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -91,7 +91,7 @@ public static Optional<URI> getReportedUri(Capabilities caps) {
9191 break ;
9292 case "firefox" :
9393 key = "moz:debuggerAddress" ;
94- if (!( Boolean ) caps .getCapability ("webSocketUrl" )) {
94+ if (!caps .is ("webSocketUrl" )) {
9595 LOG .warning (
9696 "CDP support for Firefox is deprecated and will be removed in future versions. "
9797 + "Please switch to WebDriver BiDi." );
Original file line number Diff line number Diff line change @@ -165,7 +165,7 @@ private FirefoxDriver(
165165 Optional <URI > reportedUri =
166166 CdpEndpointFinder .getReportedUri ("moz:debuggerAddress" , capabilities );
167167
168- if (reportedUri .isPresent () && !( Boolean ) capabilities .getCapability ("webSocketUrl" )) {
168+ if (reportedUri .isPresent () && !capabilities .is ("webSocketUrl" )) {
169169 LOG .warning (
170170 "CDP support for Firefox is deprecated and will be removed in future versions. "
171171 + "Please switch to WebDriver BiDi." );
You can’t perform that action at this time.
0 commit comments