Example usage for org.openqa.selenium.html5 Location Location

List of usage examples for org.openqa.selenium.html5 Location Location

Introduction

In this page you can find the example usage for org.openqa.selenium.html5 Location Location.

Prototype

public Location(double latitude, double longitude, double altitude) 

Source Link

Usage

From source file:com.hotwire.test.steps.application.IOSEnvironmentSettings.java

License:Apache License

public void setEnvironment() {
    appiumDriver.manage().timeouts().implicitlyWait(40, TimeUnit.SECONDS);
    Location loc = new Location(37.795255, -122.403561, 39);
    appiumDriver.setLocation(loc);//from w ww  .  ja  v  a  2 s . com
    HomeScreen homeScreenObj = new HomeScreen(appiumDriver);
    homeScreenObj.handlePushNotificationAlert();
}

From source file:io.appium.java_client.AppiumDriverTest.java

License:Apache License

@Test
public void geolocationTest() {
    Location location = new Location(45, 45, 100);
    driver.setLocation(location);
}