I can not run my script on the device or on the simulator. It gives the following error:
error: Could not determine your device from Appium arguments or desired capabilities.
Please make sure to specify the 'deviceName' capability
It worked previously with Appium v0.18.2, but when I updated it to version 1.0.0 - Orion, it gave this error.
I tried:
[1] capabilities.setCapability("deviceName", "iPhone Simulator");
[2] capabilities.setCapability("device", "iPhone Simulator");
[3] capabilities.setCapability("device", "iPhone");
[4] capabilities.setCapability("deviceName", "iPhone");
My other features are set as follows:
DesiredCapabilities capabilities = new DesiredCapabilities();
capabilities.setCapability(CapabilityType.BROWSER_NAME, "iOS");
capabilities.setCapability(CapabilityType.VERSION, "7.1");
capabilities.setCapability(CapabilityType.PLATFORM, "Mac");
capabilities.setCapability("app", "/Users/smriti/Abc.app");
driver = new RemoteWebDriver(new URL("http://127.0.0.1:4723/wd/hub"), capabilities);
Where to set this device name. Any help would be appreciated.
source
share