File tree Expand file tree Collapse file tree 2 files changed +15
-9
lines changed
java/src/org/openqa/selenium/remote Expand file tree Collapse file tree 2 files changed +15
-9
lines changed Original file line number Diff line number Diff line change 21
21
* Commonly seen remote webdriver capabilities.
22
22
*/
23
23
public interface CapabilityType {
24
+
24
25
String BROWSER_NAME = "browserName" ;
25
- @ Deprecated String PLATFORM = "platform" ;
26
+ /**
27
+ * @deprecated Use {@link CapabilityType#PLATFORM_NAME}
28
+ */
29
+ @ Deprecated
30
+ String PLATFORM = "platform" ;
26
31
String PLATFORM_NAME = "platformName" ;
27
32
String SUPPORTS_JAVASCRIPT = "javascriptEnabled" ;
28
33
String TAKES_SCREENSHOT = "takesScreenshot" ;
34
+ /**
35
+ * @deprecated Use {@link CapabilityType#BROWSER_VERSION}
36
+ */
37
+ @ Deprecated
29
38
String VERSION = "version" ;
30
39
String BROWSER_VERSION = "browserVersion" ;
31
40
String SUPPORTS_ALERTS = "handlesAlerts" ;
Original file line number Diff line number Diff line change 29
29
import org .openqa .selenium .Platform ;
30
30
31
31
import java .util .Map ;
32
- import java .util .logging .Logger ;
33
32
34
33
public class DesiredCapabilities extends MutableCapabilities {
35
34
36
- private static final Logger LOG = Logger .getLogger (Capabilities .class .getName ());
37
-
38
35
public DesiredCapabilities (String browser , String version , Platform platform ) {
39
36
setCapability (BROWSER_NAME , browser );
40
37
setCapability (VERSION , version );
@@ -63,6 +60,11 @@ public DesiredCapabilities(Capabilities... others) {
63
60
}
64
61
}
65
62
63
+ @ Deprecated
64
+ public static DesiredCapabilities htmlUnit () {
65
+ return new DesiredCapabilities (HTMLUNIT .browserName (), "" , Platform .ANY );
66
+ }
67
+
66
68
public void setBrowserName (String browserName ) {
67
69
setCapability (BROWSER_NAME , browserName );
68
70
}
@@ -110,9 +112,4 @@ public DesiredCapabilities merge(Capabilities extraCapabilities) {
110
112
}
111
113
return this ;
112
114
}
113
-
114
- @ Deprecated
115
- public static DesiredCapabilities htmlUnit () {
116
- return new DesiredCapabilities (HTMLUNIT .browserName (), "" , Platform .ANY );
117
- }
118
115
}
You can’t perform that action at this time.
0 commit comments