File tree Expand file tree Collapse file tree 3 files changed +1
-22
lines changed
test/org/openqa/selenium/grid/data Expand file tree Collapse file tree 3 files changed +1
-22
lines changed Original file line number Diff line number Diff line change @@ -55,8 +55,7 @@ default Platform getPlatformName() {
55
55
}
56
56
57
57
default String getBrowserVersion () {
58
- return String .valueOf (Optional .ofNullable (getCapability ("browserVersion" )).orElse (
59
- Optional .ofNullable (getCapability ("version" )).orElse ("" )));
58
+ return String .valueOf (Optional .ofNullable (getCapability ("browserVersion" )).orElse ("" ));
60
59
}
61
60
62
61
/**
Original file line number Diff line number Diff line change @@ -37,11 +37,6 @@ public interface CapabilityType {
37
37
*/
38
38
@ Deprecated
39
39
String TAKES_SCREENSHOT = "takesScreenshot" ;
40
- /**
41
- * @deprecated Use {@link CapabilityType#BROWSER_VERSION}
42
- */
43
- @ Deprecated
44
- String VERSION = "version" ;
45
40
/**
46
41
* @deprecated Non W3C compliant
47
42
*/
Original file line number Diff line number Diff line change @@ -262,21 +262,6 @@ void shouldNotMatchIfRequestedBrowserVersionIsMissingFromStereotype() {
262
262
assertThat (slotMatcher .matches (stereotype , capabilities )).isFalse ();
263
263
}
264
264
265
- @ Test
266
- void matchesWithJsonWireProtocolCaps () {
267
- Capabilities stereotype = new ImmutableCapabilities (
268
- CapabilityType .BROWSER_NAME , "chrome" ,
269
- CapabilityType .BROWSER_VERSION , "80" ,
270
- CapabilityType .PLATFORM_NAME , Platform .WINDOWS
271
- );
272
- Capabilities capabilities = new ImmutableCapabilities (
273
- CapabilityType .BROWSER_NAME , "chrome" ,
274
- CapabilityType .VERSION , "80" ,
275
- CapabilityType .PLATFORM , Platform .WINDOWS
276
- );
277
- assertThat (slotMatcher .matches (stereotype , capabilities )).isTrue ();
278
- }
279
-
280
265
@ Test
281
266
void shouldNotMatchCapabilitiesThatAreDifferentButDoNotContainCommonCapabilityNames () {
282
267
Capabilities stereotype = new ImmutableCapabilities ("acceptInsecureCerts" , "true" );
You can’t perform that action at this time.
0 commit comments