cap.setDeviceVariation(variation);
cap.setCapability(LANGUAGE, "en");
cap.setCapability(LOCALE, "en_GB");
cap.setCapability(BUNDLE_NAME, "Safari");
RemoteIOSDriver driver = null;
try {
driver = new RemoteIOSDriver(new URL(url), cap);
for (Orientation o : getOrientationForDevice(device)) {
driver.rotate(o);
driver.get(pages.formPage);
WebElement element = driver.findElement(By.id("working"));
element.sendKeys("some");
String value = element.getAttribute("value");
assertEquals(value, ("some"));
element.sendKeys(" text");
value = element.getAttribute("value");
assertEquals(value, ("some text"));
}
} finally {
if (driver != null) {
driver.quit();
}
}
}