URL serverUrl = new URL( "http://127.0.0.1:4723/wd/hub");
DesiredCapabilities capabilities = new DesiredCapabilities();
capabilities.setCapability(MobileCapabilityType.PLATFORM_NAME, "iOS");
capabilities.setCapability(MobileCapabilityType.PLATFORM_VERSION, "9.3");
capabilities.setCapability(MobileCapabilityType.DEVICE_NAME, "iPhone 6");
capabilities.setCapability(MobileCapabilityType.BROWSER_NAME, "Safari");
capabilities.setCapability(MobileCapabilityType.FULL_RESET, "true");
System.out.println("Step1 Create new driver");
AppiumDriver driver = new IOSDriver(serverUrl,capabilities);
System.out.println("open webbrowser");
driver.get("https://www.docker.com/");
System.out.println("Step3 enter email");
System.out.println("step4 enter password");
System.out.println("Step5 click login button ");
driver.quit();
}
}
org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. Original error: Could not get Xcode version. /Library/Developer/Info.plist does not exist on disk. (WARNING: The server did not provide any stacktrace information)