use of com.google.api.ads.admanager.axis.v202205.Location in project selenium-webdriver-java by bonigarcia.
the class LocationContextJUnit4Test method testLocationContext.
@Test
public void testLocationContext() {
LocationContext location = (LocationContext) driver;
location.setLocation(new Location(27.5916, 86.5640, 8850));
driver.get("https://bonigarcia.dev/selenium-webdriver-java/geolocation.html");
driver.findElement(By.id("get-coordinates")).click();
WebDriverWait wait = new WebDriverWait(driver, Duration.ofSeconds(5));
WebElement coordinates = driver.findElement(By.id("coordinates"));
wait.until(ExpectedConditions.visibilityOf(coordinates));
}
use of com.google.api.ads.admanager.axis.v202205.Location in project selenium-webdriver-java by bonigarcia.
the class LocationContextJupiterTest method testLocationContext.
@Test
void testLocationContext() {
LocationContext location = (LocationContext) driver;
location.setLocation(new Location(27.5916, 86.5640, 8850));
driver.get("https://bonigarcia.dev/selenium-webdriver-java/geolocation.html");
driver.findElement(By.id("get-coordinates")).click();
WebDriverWait wait = new WebDriverWait(driver, Duration.ofSeconds(5));
WebElement coordinates = driver.findElement(By.id("coordinates"));
wait.until(ExpectedConditions.visibilityOf(coordinates));
}
Aggregations