Interface SupportsLocation

  • All Superinterfaces:
    ExecutesMethod, org.openqa.selenium.html5.LocationContext, org.openqa.selenium.SearchContext, org.openqa.selenium.WebDriver
    All Known Implementing Classes:
    AndroidDriver, IOSDriver

    public interface SupportsLocation
    extends org.openqa.selenium.WebDriver, ExecutesMethod, org.openqa.selenium.html5.LocationContext
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.openqa.selenium.WebDriver

        org.openqa.selenium.WebDriver.Navigation, org.openqa.selenium.WebDriver.Options, org.openqa.selenium.WebDriver.TargetLocator, org.openqa.selenium.WebDriver.Timeouts, org.openqa.selenium.WebDriver.Window
    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods 
      Modifier and Type Method Description
      default Location getLocation()
      Gets the current device's geolocation coordinates.
      org.openqa.selenium.remote.html5.RemoteLocationContext getLocationContext()
      Deprecated, for removal: This API element is subject to removal in a future version.
      This method, LocationContext and RemoteLocationContext interface are deprecated, use getLocation() and setLocation(io.appium.java_client.Location) instead.
      default org.openqa.selenium.html5.Location location()
      Deprecated, for removal: This API element is subject to removal in a future version.
      This method and whole LocationContext interface are deprecated, use getLocation() instead.
      default void setLocation​(Location location)
      Sets the current device's geolocation coordinates.
      default void setLocation​(org.openqa.selenium.html5.Location location)
      Deprecated, for removal: This API element is subject to removal in a future version.
      This method and whole LocationContext interface are deprecated, use setLocation(io.appium.java_client.Location) instead.
      • Methods inherited from interface org.openqa.selenium.WebDriver

        close, findElement, findElements, get, getCurrentUrl, getPageSource, getTitle, getWindowHandle, getWindowHandles, manage, navigate, quit, switchTo
    • Method Detail

      • getLocationContext

        @Deprecated(forRemoval=true)
        org.openqa.selenium.remote.html5.RemoteLocationContext getLocationContext()
        Deprecated, for removal: This API element is subject to removal in a future version.
        This method, LocationContext and RemoteLocationContext interface are deprecated, use getLocation() and setLocation(io.appium.java_client.Location) instead.
        Provides the location context.
        Returns:
        instance of RemoteLocationContext
      • location

        @Deprecated(forRemoval=true)
        default org.openqa.selenium.html5.Location location()
        Deprecated, for removal: This API element is subject to removal in a future version.
        This method and whole LocationContext interface are deprecated, use getLocation() instead.
        Gets the current device's geolocation coordinates.
        Specified by:
        location in interface org.openqa.selenium.html5.LocationContext
        Returns:
        A Location containing the location information. Returns null if the location is not available
      • getLocation

        default Location getLocation()
        Gets the current device's geolocation coordinates.
        Returns:
        A Location containing the location information. Throws WebDriverException if the location is not available.
      • setLocation

        @Deprecated(forRemoval=true)
        default void setLocation​(org.openqa.selenium.html5.Location location)
        Deprecated, for removal: This API element is subject to removal in a future version.
        This method and whole LocationContext interface are deprecated, use setLocation(io.appium.java_client.Location) instead.
        Sets the current device's geolocation coordinates.
        Specified by:
        setLocation in interface org.openqa.selenium.html5.LocationContext
        Parameters:
        location - A Location containing the new location information.
      • setLocation

        default void setLocation​(Location location)
        Sets the current device's geolocation coordinates.
        Parameters:
        location - A Location containing the new location information.