capabilities.setCapability("browserName", "safari");
capabilities.setCapability(MobileCapabilityType.AUTOMATION_NAME, "XCUITest");
capabilities.setCapability("platformName", "iOS");</BUG>
capabilities.setCapability("platformVersion", "10.1");
<BUG>capabilities.setCapability("deviceName", "iPhone SE");
driver = new IOSDriver<MobileElement>(url, capabilities);</BUG>
}
@Test
public void iOSTest() {
driver.get("http://www.baidu.com");

capabilities.setCapability("browserName", "safari");
if (capabilities.getCapability("platformVersion").toString().contains("10")) {
capabilities.setCapability(MobileCapabilityType.AUTOMATION_NAME, "XCUITest");
capabilities.setCapability("platformVersion", "10.1");
capabilities.setCapability("deviceName", "iPhone SE");
} else {
capabilities.setCapability("platformVersion", "8.4");
capabilities.setCapability("deviceName", "iPhone 5s");
}
driver = new IOSDriver<MobileElement>(url, capabilities);
}
@Test
public void iOSTest() {
driver.get("http://www.baidu.com");
