File tree Expand file tree Collapse file tree 7 files changed +20
-16
lines changed
java/client/src/org/openqa/selenium Expand file tree Collapse file tree 7 files changed +20
-16
lines changed Original file line number Diff line number Diff line change 18
18
package org .openqa .selenium .chrome ;
19
19
20
20
import com .google .auto .service .AutoService ;
21
+
21
22
import org .openqa .selenium .Capabilities ;
22
23
import org .openqa .selenium .ImmutableCapabilities ;
23
24
import org .openqa .selenium .SessionNotCreatedException ;
@@ -45,9 +46,9 @@ public Capabilities getCanonicalCapabilities() {
45
46
46
47
@ Override
47
48
public boolean isSupporting (Capabilities capabilities ) {
48
- return BrowserType .CHROME .equals (capabilities .getBrowserName ()) ||
49
- capabilities .getCapability ("chromeOptions" ) != null ||
50
- capabilities .getCapability ("goog:chromeOptions" ) != null ;
49
+ return BrowserType .CHROME .equalsIgnoreCase (capabilities .getBrowserName ()) ||
50
+ capabilities .getCapability ("chromeOptions" ) != null ||
51
+ capabilities .getCapability ("goog:chromeOptions" ) != null ;
51
52
}
52
53
53
54
@ Override
Original file line number Diff line number Diff line change @@ -47,12 +47,12 @@ public Capabilities getCanonicalCapabilities() {
47
47
48
48
@ Override
49
49
public boolean isSupporting (Capabilities capabilities ) {
50
- return (BrowserType .EDGE .equals (capabilities .getBrowserName ())
51
- || capabilities .getCapability ("ms:edgeOptions" ) != null
52
- || capabilities .getCapability ("edgeOptions" ) != null )
53
- &&
54
- (capabilities .getCapability (EdgeOptions .USE_CHROMIUM ) == null
55
- || Objects .equals (capabilities .getCapability (EdgeOptions .USE_CHROMIUM ), true ));
50
+ return (BrowserType .EDGE .equalsIgnoreCase (capabilities .getBrowserName ())
51
+ || capabilities .getCapability ("ms:edgeOptions" ) != null
52
+ || capabilities .getCapability ("edgeOptions" ) != null )
53
+ &&
54
+ (capabilities .getCapability (EdgeOptions .USE_CHROMIUM ) == null
55
+ || Objects .equals (capabilities .getCapability (EdgeOptions .USE_CHROMIUM ), true ));
56
56
}
57
57
58
58
@ Override
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ public boolean isSupporting(Capabilities capabilities) {
51
51
return false ;
52
52
}
53
53
54
- if (BrowserType .FIREFOX .equals (capabilities .getBrowserName ())) {
54
+ if (BrowserType .FIREFOX .equalsIgnoreCase (capabilities .getBrowserName ())) {
55
55
return true ;
56
56
}
57
57
Original file line number Diff line number Diff line change 18
18
package org .openqa .selenium .ie ;
19
19
20
20
import com .google .auto .service .AutoService ;
21
+
21
22
import org .openqa .selenium .Capabilities ;
22
23
import org .openqa .selenium .ImmutableCapabilities ;
23
24
import org .openqa .selenium .SessionNotCreatedException ;
@@ -45,8 +46,8 @@ public Capabilities getCanonicalCapabilities() {
45
46
46
47
@ Override
47
48
public boolean isSupporting (Capabilities capabilities ) {
48
- return BrowserType .IE .equals (capabilities .getBrowserName ()) ||
49
- capabilities .getCapability ("se:ieOptions" ) != null ;
49
+ return BrowserType .IE .equalsIgnoreCase (capabilities .getBrowserName ()) ||
50
+ capabilities .getCapability ("se:ieOptions" ) != null ;
50
51
}
51
52
52
53
@ Override
Original file line number Diff line number Diff line change @@ -46,8 +46,8 @@ public Capabilities getCanonicalCapabilities() {
46
46
47
47
@ Override
48
48
public boolean isSupporting (Capabilities capabilities ) {
49
- return BrowserType .OPERA_BLINK .equals (capabilities .getBrowserName ()) ||
50
- BrowserType .OPERA .equals (capabilities .getBrowserName ());
49
+ return BrowserType .OPERA_BLINK .equalsIgnoreCase (capabilities .getBrowserName ()) ||
50
+ BrowserType .OPERA .equalsIgnoreCase (capabilities .getBrowserName ());
51
51
}
52
52
53
53
@ Override
Original file line number Diff line number Diff line change 18
18
package org .openqa .selenium .safari ;
19
19
20
20
import com .google .auto .service .AutoService ;
21
+
21
22
import org .openqa .selenium .Capabilities ;
22
23
import org .openqa .selenium .ImmutableCapabilities ;
23
24
import org .openqa .selenium .SessionNotCreatedException ;
@@ -45,7 +46,7 @@ public Capabilities getCanonicalCapabilities() {
45
46
46
47
@ Override
47
48
public boolean isSupporting (Capabilities capabilities ) {
48
- if (BrowserType .SAFARI .equals (capabilities .getBrowserName ())) {
49
+ if (BrowserType .SAFARI .equalsIgnoreCase (capabilities .getBrowserName ())) {
49
50
return true ;
50
51
}
51
52
Original file line number Diff line number Diff line change 18
18
package org .openqa .selenium .safari ;
19
19
20
20
import com .google .auto .service .AutoService ;
21
+
21
22
import org .openqa .selenium .Capabilities ;
22
23
import org .openqa .selenium .ImmutableCapabilities ;
23
24
import org .openqa .selenium .SessionNotCreatedException ;
@@ -44,7 +45,7 @@ public Capabilities getCanonicalCapabilities() {
44
45
45
46
@ Override
46
47
public boolean isSupporting (Capabilities capabilities ) {
47
- if (SafariOptions .SAFARI_TECH_PREVIEW .equals (capabilities .getBrowserName ())) {
48
+ if (SafariOptions .SAFARI_TECH_PREVIEW .equalsIgnoreCase (capabilities .getBrowserName ())) {
48
49
return true ;
49
50
}
50
51
You can’t perform that action at this time.
0 commit comments