List of usage examples for org.openqa.selenium.html5 Location Location
public Location(double latitude, double longitude, double altitude)
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); }