| 程序包 | 说明 |
|---|---|
| org.openqa.selenium | |
| org.openqa.selenium.remote |
| 限定符和类型 | 方法和说明 |
|---|---|
static Platform |
Platform.extractFromSysProperty(String osName)
Extracts platforms based on system properties in Java and uses a heuristic to determine the
most likely operating system.
|
static Platform |
Platform.extractFromSysProperty(String osName,
String osVersion)
Extracts platforms based on system properties in Java and uses a heuristic to determine the
most likely operating system.
|
Platform |
Platform.family()
Returns a platform that represents a family for the current platform.
|
static Platform |
Platform.fromString(String name)
Gets a platform with the name matching the parameter.
|
static Platform |
Platform.getCurrent()
Get current platform (not necessarily the same as operating system).
|
Platform |
Capabilities.getPlatform() |
static Platform |
Platform.valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static Platform[] |
Platform.values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
Platform.is(Platform compareWith)
Heuristic for comparing two platforms.
|
| 限定符和类型 | 方法和说明 |
|---|---|
Platform |
DesiredCapabilities.getPlatform() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
DesiredCapabilities.setCapability(String capabilityName,
Platform value) |
void |
DesiredCapabilities.setPlatform(Platform platform) |
| 构造器和说明 |
|---|
DesiredCapabilities(String browser,
String version,
Platform platform) |