Interface SupportsLocation

All Superinterfaces:
ExecutesMethod, org.openqa.selenium.SearchContext, org.openqa.selenium.WebDriver
All Known Implementing Classes:
AndroidDriver, FlutterAndroidDriver, FlutterIOSDriver, IOSDriver

public interface SupportsLocation extends org.openqa.selenium.WebDriver, ExecutesMethod
  • 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

    Modifier and Type
    Method
    Description
    default Location
    Gets the current device's geolocation coordinates.
    default void
    Sets the current device's geolocation coordinates.

    Methods inherited from interface io.appium.java_client.ExecutesMethod

    execute, execute

    Methods inherited from interface org.openqa.selenium.WebDriver

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

    • 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

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