Package io.appium.java_client.remote
Interface SupportsLocation
- All Superinterfaces:
ExecutesMethod,org.openqa.selenium.SearchContext,org.openqa.selenium.WebDriver
- All Known Implementing Classes:
AndroidDriver,FlutterAndroidDriver,FlutterIOSDriver,IOSDriver
-
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 TypeMethodDescriptiondefault LocationGets the current device's geolocation coordinates.default voidsetLocation(Location location) Sets the current device's geolocation coordinates.Methods inherited from interface io.appium.java_client.ExecutesMethod
execute, executeMethods inherited from interface org.openqa.selenium.WebDriver
close, findElement, findElements, get, getCurrentUrl, getPageSource, getTitle, getWindowHandle, getWindowHandles, manage, navigate, quit, switchTo
-
Method Details
-
getLocation
Gets the current device's geolocation coordinates.- Returns:
- A
Locationcontaining the location information. ThrowsWebDriverExceptionif the location is not available.
-
setLocation
Sets the current device's geolocation coordinates.- Parameters:
location- ALocationcontaining the new location information.
-