接口 Capabilities
- 所有已知实现类:
CapabilitiesImpl
public interface Capabilities
-
字段概要
字段 -
方法概要
修饰符和类型方法说明Returns the browser value (e.g.Returns the major version of the browser (e.g. 55 in case of Chrome)Returns the browser type (e.g.Returns the device type (e.g.Returns the platform name (e.g.Returns the platform version (e.g. 4.2, 10 depending on what the platform is)getValue(BrowsCapField field) Returns the value for the specified field.Returns the Map of values with the fields passed to the parser while loading
-
字段详细资料
-
UNKNOWN_BROWSCAP_VALUE
- 另请参阅:
-
-
方法详细资料
-
getBrowser
String getBrowser()Returns the browser value (e.g. Chrome)- 返回:
- the browser
-
getBrowserType
String getBrowserType()Returns the browser type (e.g. Browser or Application)- 返回:
- the browser type
-
getBrowserMajorVersion
String getBrowserMajorVersion()Returns the major version of the browser (e.g. 55 in case of Chrome)- 返回:
- the browser major version
-
getPlatform
String getPlatform()Returns the platform name (e.g. Android, iOS, Win7, Win10)- 返回:
- the platform
-
getPlatformVersion
String getPlatformVersion()Returns the platform version (e.g. 4.2, 10 depending on what the platform is)- 返回:
- the platform version
-
getDeviceType
String getDeviceType()Returns the device type (e.g. Mobile Phone, Desktop, Tablet, Console, TV Device)- 返回:
- the device type
-
getValue
Returns the value for the specified field.- 参数:
field- The field for which the value should be returned.- 返回:
- the value for the specified field.
-
getValues
Map<BrowsCapField,String> getValues()Returns the Map of values with the fields passed to the parser while loading- 返回:
- the map of values
-