Unable to run the automation test case in mac using appium

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP



Unable to run the automation test case in mac using appium



I am trying to run the appium script on mac but facing the issue when running the script. Details are mentioned below:



Configuration:


OS: 10.13.6
xcode: 9.4.1
Simulator : iPhone 7
Java_client jar = 6.1.0
Okhttp jar = 3.9.1
httpclient jar = 4.5.3
appium server = 1.8.1



Steps:
I have added the following desired capabilities in my script:


DesiredCapabilities capabilities = new DesiredCapabilities();
capabilities.setCapability(MobileCapabilityType.DEVICE_NAME, "iPhone 7");
capabilities.setCapability(MobileCapabilityType.PLATFORM_NAME, "iOS");
capabilities.setCapability(MobileCapabilityType.AUTOMATION_NAME, AutomationName.IOS_XCUI_TEST);
capabilities.setCapability(MobileCapabilityType.APP, "/Users/synerzip/Desktop/emulator/Concishare Provider.app");
capabilities.setCapability("usePrebuiltWDA", false);
capabilities.setCapability("clearSystemFiles", true);
capabilities.setCapability(MobileCapabilityType.BROWSER_NAME, "iOS");
capabilities.setCapability(MobileCapabilityType.AUTO_WEBVIEW, true);
IOSDriver driver = new IOSDriver(new URL("http://0.0.0.:4723/wd/hub"), capabilities);



Error:



When I am trying to run it, it is displaying the following error:


Exception in thread "main" org.openqa.selenium.WebDriverException: It is impossible to create a new session because 'createSession' which takes HttpClient, InputStream and long was not found or it is not accessible
Build info: version: '3.12.0', revision: '7c6e0b3', time: '2018-05-08T15:15:03.216Z'
System info: host: 'syn-macmini-03.synerzipune.local', ip: '2001:df0:d300:212:a155:8262:1823:7137%en0', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.13.6', java.version: '1.8.0_171'
Driver info: driver.version: IOSDriver



I have added the java client jar with version '5.0.0' but still getting the same error





Found github.com/appium/java-client/issues/926. Might have some help there.
– RKelley
Aug 6 at 20:10





I have updated the single capability as follow: IOSDriver driver = new IOSDriver(new URL("http:/127.0.0.1:4723/wd/hub"), capabilities); after updating I have restarted my machine and it start working, I don't know what magic is happen. @RKelley: Thanks for looking in to it
– Girish
Aug 14 at 7:24










By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

Firebase Auth - with Email and Password - Check user already registered

Dynamically update html content plain JS

How to determine optimal route across keyboard