Interface SupportsAbsoluteWebLocationsOption<T extends BaseOptions<T>>
-
- All Superinterfaces:
CanSetCapability<T>
,org.openqa.selenium.Capabilities
,java.io.Serializable
- All Known Implementing Classes:
XCUITestOptions
public interface SupportsAbsoluteWebLocationsOption<T extends BaseOptions<T>> extends org.openqa.selenium.Capabilities, CanSetCapability<T>
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ABSOLUTE_WEB_LOCATIONS_OPTION
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default T
absoluteWebLocations()
Enforces Get Element Location to return coordinates relative to the page origin for web view elements.default java.util.Optional<java.lang.Boolean>
doesAbsoluteWebLocations()
Get whether Get Element Location returns coordinates relative to the page origin for web view elements.default T
setAbsoluteWebLocations(boolean value)
This capability will direct the Get Element Location command, when used within webviews, to return coordinates which are relative to the origin of the page, rather than relative to the current scroll offset.-
Methods inherited from interface io.appium.java_client.remote.options.CanSetCapability
amend, setCapability
-
-
-
-
Field Detail
-
ABSOLUTE_WEB_LOCATIONS_OPTION
static final java.lang.String ABSOLUTE_WEB_LOCATIONS_OPTION
- See Also:
- Constant Field Values
-
-
Method Detail
-
absoluteWebLocations
default T absoluteWebLocations()
Enforces Get Element Location to return coordinates relative to the page origin for web view elements.- Returns:
- self instance for chaining.
-
setAbsoluteWebLocations
default T setAbsoluteWebLocations(boolean value)
This capability will direct the Get Element Location command, when used within webviews, to return coordinates which are relative to the origin of the page, rather than relative to the current scroll offset. This capability has no effect outside of webviews. Default false.- Parameters:
value
- Whether to return coordinates relative to the page origin for web view elements.- Returns:
- self instance for chaining.
-
doesAbsoluteWebLocations
default java.util.Optional<java.lang.Boolean> doesAbsoluteWebLocations()
Get whether Get Element Location returns coordinates relative to the page origin for web view elements.- Returns:
- True or false.
-
-