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 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
andRemoteLocationContext
interface are deprecated, usegetLocation()
andsetLocation(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 wholeLocationContext
interface are deprecated, usegetLocation()
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 wholeLocationContext
interface 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,LocationContext
andRemoteLocationContext
interface 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 wholeLocationContext
interface are deprecated, usegetLocation()
instead.Gets the current device's geolocation coordinates.- Specified by:
location
in interfaceorg.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. ThrowsWebDriverException
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 wholeLocationContext
interface are deprecated, usesetLocation(io.appium.java_client.Location)
instead.Sets the current device's geolocation coordinates.- Specified by:
setLocation
in interfaceorg.openqa.selenium.html5.LocationContext
- Parameters:
location
- ALocation
containing the new location information.
-
setLocation
default void setLocation(Location location)
Sets the current device's geolocation coordinates.- Parameters:
location
- ALocation
containing the new location information.
-
-