We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3482056 commit b72b2a2Copy full SHA for b72b2a2
mabl snippets/native mobile testing/setGeoLocaiton.js
@@ -0,0 +1,16 @@
1
+function mablJavaScriptStep(
2
+ mablInputs,
3
+ callback,
4
+ altitude = "10",
5
+ latitude = "48.85873;",
6
+ longitude = "2.29373"
7
+) {
8
+ async function callAppium() {
9
+ const driver = await mabl.mobile.getDriver();
10
+ await driver.setGeoLocation({ latitude, longitude, altitude });
11
+ return "Geo Location set: " + latitude + ", " + longitude + ", " + altitude;
12
+ }
13
+ callAppium()
14
+ .then((result) => callback(result))
15
+ .catch((error) => callback(error));
16
+}
0 commit comments