Interface SupportsAbsoluteWebLocationsOption<T extends BaseOptions<T>>

    • 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 org.openqa.selenium.Capabilities

        asMap, getBrowserName, getBrowserVersion, getCapability, getCapabilityNames, getPlatform, getPlatformName, getVersion, is, merge
    • 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.