Appium Automation tool Desired Capabilities to run on simulator
public WebDriver driver = null;
DesiredCapabilities capabilities = new
DesiredCapabilities();
capabilities.setCapability(CapabilityType.BROWSER_NAME,
"iOS");
capabilities.setCapability(CapabilityType.VERSION,
"6.1");
capabilities.setCapability(CapabilityType.PLATFORM,
"Mac");
capabilities.setCapability("device",
"iPhone");
capabilities.setCapability("app","/Users/abc/Desktop/MyiOSApp.app");
driver = new RemoteWebDriver(new
URL("http://127.0.0.1:4723/wd/hub"), capabilities);
Comments
Post a Comment