Package io.appium.java_client.remote
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
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description default LocationgetLocation()Gets the current device's geolocation coordinates.org.openqa.selenium.remote.html5.RemoteLocationContextgetLocationContext()Deprecated, for removal: This API element is subject to removal in a future version.This method,LocationContextandRemoteLocationContextinterface are deprecated, usegetLocation()andsetLocation(io.appium.java_client.Location)instead.default org.openqa.selenium.html5.Locationlocation()Deprecated, for removal: This API element is subject to removal in a future version.This method and wholeLocationContextinterface are deprecated, usegetLocation()instead.default voidsetLocation(Location location)Sets the current device's geolocation coordinates.default voidsetLocation(org.openqa.selenium.html5.Location location)Deprecated, for removal: This API element is subject to removal in a future version.This method and wholeLocationContextinterface are deprecated, usesetLocation(io.appium.java_client.Location)instead.-
Methods inherited from interface io.appium.java_client.ExecutesMethod
execute, execute
-
-
-
-
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,LocationContextandRemoteLocationContextinterface are deprecated, usegetLocation()andsetLocation(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 wholeLocationContextinterface are deprecated, usegetLocation()instead.Gets the current device's geolocation coordinates.- Specified by:
locationin interfaceorg.openqa.selenium.html5.LocationContext- Returns:
- A
Locationcontaining the location information. Returns null if the location is not available
-
getLocation
default Location getLocation()
Gets the current device's geolocation coordinates.- Returns:
- A
Locationcontaining the location information. ThrowsWebDriverExceptionif 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 wholeLocationContextinterface are deprecated, usesetLocation(io.appium.java_client.Location)instead.Sets the current device's geolocation coordinates.- Specified by:
setLocationin interfaceorg.openqa.selenium.html5.LocationContext- Parameters:
location- ALocationcontaining the new location information.
-
setLocation
default void setLocation(Location location)
Sets the current device's geolocation coordinates.- Parameters:
location- ALocationcontaining the new location information.
-
-