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
    Modifier and Type
    Field
    Description
    static final String
     
  • Method Summary

    Modifier and Type
    Method
    Description
    default T
    Enforces Get Element Location to return coordinates relative to the page origin for web view elements.
    default Optional<Boolean>
    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

    Methods inherited from interface org.openqa.selenium.Capabilities

    asMap, get, getBrowserName, getBrowserVersion, getCapability, getCapabilityNames, getPlatformName, is, merge, required
  • Field Details

  • Method Details

    • 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 Optional<Boolean> doesAbsoluteWebLocations()
      Get whether Get Element Location returns coordinates relative to the page origin for web view elements.
      Returns:
      True or false.