Interface SupportsSafariDeviceTypeOption<T extends BaseOptions<T>>
- All Superinterfaces:
CanSetCapability<T>,org.openqa.selenium.Capabilities,Serializable
- All Known Implementing Classes:
SafariOptions
public interface SupportsSafariDeviceTypeOption<T extends BaseOptions<T>>
extends org.openqa.selenium.Capabilities, CanSetCapability<T>
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionGet the type of the device.default TsetSafariDeviceType(String deviceType) If the value of safari:deviceType is 'iPhone', safaridriver will only create a session using an iPhone device or iPhone simulator.Methods inherited from interface io.appium.java_client.remote.options.CanSetCapability
amend, setCapabilityMethods inherited from interface org.openqa.selenium.Capabilities
asMap, get, getBrowserName, getBrowserVersion, getCapability, getCapabilityNames, getPlatformName, is, merge, required
-
Field Details
-
SAFARI_DEVICE_TYPE_OPTION
- See Also:
-
-
Method Details
-
setSafariDeviceType
If the value of safari:deviceType is 'iPhone', safaridriver will only create a session using an iPhone device or iPhone simulator. If the value of safari:deviceType is 'iPad', safaridriver will only create a session using an iPad device or iPad simulator. Values of safari:deviceType are compared case-insensitively.- Parameters:
deviceType- Device type name.- Returns:
- self instance for chaining.
-
getSafariDeviceType
Get the type of the device.- Returns:
- String representing the type of the device.
-