Interface SupportsAbsoluteWebLocationsOption<T extends BaseOptions<T>>
- All Superinterfaces:
CanSetCapability<T>,org.openqa.selenium.Capabilities,Serializable
- All Known Implementing Classes:
XCUITestOptions
public interface SupportsAbsoluteWebLocationsOption<T extends BaseOptions<T>>
extends org.openqa.selenium.Capabilities, CanSetCapability<T>
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondefault TEnforces Get Element Location to return coordinates relative to the page origin for web view elements.Get whether Get Element Location returns coordinates relative to the page origin for web view elements.default TsetAbsoluteWebLocations(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, setCapabilityMethods inherited from interface org.openqa.selenium.Capabilities
asMap, get, getBrowserName, getBrowserVersion, getCapability, getCapabilityNames, getPlatformName, is, merge, required
-
Field Details
-
ABSOLUTE_WEB_LOCATIONS_OPTION
- See Also:
-
-
Method Details
-
absoluteWebLocations
Enforces Get Element Location to return coordinates relative to the page origin for web view elements.- Returns:
- self instance for chaining.
-
setAbsoluteWebLocations
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
Get whether Get Element Location returns coordinates relative to the page origin for web view elements.- Returns:
- True or false.
-