Interface SupportsLocation

    • 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 Default Methods 
      Modifier and Type Method Description
      default Location getLocation()
      Gets the current device's geolocation coordinates.
      default void setLocation​(Location location)
      Sets the current device's geolocation coordinates.
      • Methods inherited from interface org.openqa.selenium.WebDriver

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

      • 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.