diff --git a/index.html b/index.html index 6492370..8d5a8e8 100644 --- a/index.html +++ b/index.html @@ -1472,6 +1472,193 @@
+ For the purposes of user-agent automation and application testing, this + document defines extensions to the [[[WebDriver]]] and + [[[WebDriver-BiDi]]] specifications. It is OPTIONAL for a user agent to + support them. +
+
+ dictionary GeolocationMockCoordinates {
+ double accuracy = 1;
+ required double latitude;
+ required double longitude;
+ double? altitude = null;
+ double? altitudeAccuracy = null;
+ double? heading = null;
+ double? speed = null;
+ };
+
+ + To set the system coordinates given an optional + {{GeolocationMockCoordinates}} + |coordinates:GeolocationMockCoordinates|, and an optional [=user + agent=] |agent|: +
+| + HTTP Method + | ++ [=Extension command URI template|URI template=] + | +
|---|---|
| + POST + | ++ /session/{session id}/geolocation + | +
+ The set system + coordinates [=extension command=] [=remote end steps=] are: +
++ This section defines the `geolocation` [=extension module=] for the + [[WebDriver-BiDi]] specification. +
++ The `geolocation` module contains commands for setting the system's + geolocation coordinates and associated types. +
++ The `GeolocationCommand` [=remote end definition=] is as follows: +
++ GeolocationCommand = ( + geolocation.setSystemCoordinates + ) ++
+ The `Coordinates` of the geolocation module is defined as follows: +
+
+ geolocation.Coordinates = {
+ accuracy: float .default 1.0,
+ latitude: float,
+ longitude: float,
+ altitude: float / null .default null,
+ altitudeAccuracy: float / null .default null,
+ heading: float / null .default null,
+ speed: float / null .default null
+ }
+
+
+ geolocation.setCoordinates = (
+ method: "geolocation.setCoordinates",
+ params: geolocation.SetCoordinates
+ )
+
+ geolocation.SetCoordinates = {
+ coordinates: geolocation.Coordinates,
+ ? userContext: text,
+ }
+
+ + The [=remote end steps=] with |session| and |command parameters| are: +
+