Interface SupportsSimpleIsVisibleCheckOption<T extends BaseOptions<T>>
-
- All Superinterfaces:
CanSetCapability<T>
,org.openqa.selenium.Capabilities
,java.io.Serializable
- All Known Implementing Classes:
XCUITestOptions
public interface SupportsSimpleIsVisibleCheckOption<T extends BaseOptions<T>> extends org.openqa.selenium.Capabilities, CanSetCapability<T>
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
SIMPLE_IS_VISIBLE_CHECK_OPTION
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default java.util.Optional<java.lang.Boolean>
doesSimpleIsVisibleCheck()
Get whether to use native methods for determining visibility of elements.default T
setSimpleIsVisibleCheck(boolean value)
Use native methods for determining visibility of elements.default T
simpleIsVisibleCheck()
Enforce usage of native methods for determining visibility of elements.-
Methods inherited from interface io.appium.java_client.remote.options.CanSetCapability
amend, setCapability
-
-
-
-
Field Detail
-
SIMPLE_IS_VISIBLE_CHECK_OPTION
static final java.lang.String SIMPLE_IS_VISIBLE_CHECK_OPTION
- See Also:
- Constant Field Values
-
-
Method Detail
-
simpleIsVisibleCheck
default T simpleIsVisibleCheck()
Enforce usage of native methods for determining visibility of elements.- Returns:
- self instance for chaining.
-
setSimpleIsVisibleCheck
default T setSimpleIsVisibleCheck(boolean value)
Use native methods for determining visibility of elements. In some cases this takes a long time. Setting this capability to false will cause the system to use the position and size of elements to make sure they are visible on the screen. This can, however, lead to false results in some situations. Defaults to false, except iOS 9.3, where it defaults to true.- Parameters:
value
- Whether to use native methods for determining visibility of elements- Returns:
- self instance for chaining.
-
doesSimpleIsVisibleCheck
default java.util.Optional<java.lang.Boolean> doesSimpleIsVisibleCheck()
Get whether to use native methods for determining visibility of elements.- Returns:
- True or false.
-
-