File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
java/client/src/org/openqa/selenium Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ default Platform getPlatform() {
48
48
return (Platform ) rawPlatform ;
49
49
}
50
50
51
- throw new IllegalStateException ("Platform was neither a string or a Platform: " + rawPlatform );
51
+ throw new IllegalStateException ("Platform was neither a string nor a Platform: " + rawPlatform );
52
52
}
53
53
54
54
default String getVersion () {
@@ -57,7 +57,7 @@ default String getVersion() {
57
57
}
58
58
59
59
/**
60
- * @deprecated Use is(SUPPORTS_JAVASCRIPT) instead
60
+ * @deprecated Use is(SUPPORTS_JAVASCRIPT) instead.
61
61
* @see #is(String)
62
62
* @see org.openqa.selenium.remote.CapabilityType#SUPPORTS_JAVASCRIPT
63
63
*/
@@ -67,7 +67,7 @@ default boolean isJavascriptEnabled() {
67
67
}
68
68
69
69
/**
70
- * @return The capabilities as a Map
70
+ * @return The capabilities as a Map.
71
71
*/
72
72
Map <String , ?> asMap ();
73
73
@@ -86,7 +86,7 @@ default boolean isJavascriptEnabled() {
86
86
default boolean is (String capabilityName ) {
87
87
Object cap = getCapability (capabilityName );
88
88
if (cap == null ) {
89
- // javascriptEnabled is true if not set explicitly
89
+ // If it's not set explicitly, javascriptEnabled is true.
90
90
return "javascriptEnabled" .equals (capabilityName );
91
91
}
92
92
return cap instanceof Boolean ? (Boolean ) cap : Boolean .parseBoolean (String .valueOf (cap ));
You can’t perform that action at this time.
0 commit comments