URL or URI must start with scheme error getting

Hi ,

Am using Appium server 1.5.3 Java_client4.0.0 and selenium 2.53.0.
When I run the test am getting below error in iphone and ipad.
org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. Original error: Url or Uri must start with :// (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 53 milliseconds
Build info: version: ‘2.53.0’, revision: ‘35ae25b’, time: ‘2016-03-15 17:00:58’
System info: host: ‘Chelladurai-as-MacBook-Pro.local’, ip: ‘192.168.125.153’, os.name: ‘Mac OS X’, os.arch: ‘x86_64’, os.version: ‘10.11.2’, java.version: ‘1.7.0_60’
Session ID: ce846954-e96c-40d3-8f76-3d474d933602
Driver info: io.appium.java_client.ios.IOSDriver

Please find my code below.
File file = new File("/Users/system/Desktop/Payload/testing.ipa");
DesiredCapabilities capabilities = new DesiredCapabilities();
capabilities.setCapability(CapabilityType.BROWSER_NAME, “”);
capabilities.setCapability(“platformVersion”, “9.2”);
capabilities.setCapability(“platformName”, “iOS”);
capabilities.setCapability(“app”, file.getAbsolutePath());
capabilities.setCapability(“deviceName”, “iphone 6s”);
app = new IOSDriver(new URL(“http://127.0.0.1:4723/wd/hub”), capabilities);

1 Like

Yes I am Also getting the same error , the issue is that IOS blocked this schema loading in webview.

Why its needed actually to load this as we already have a page set up in config.xml to load ?

Let me know if any solution for this.

Thanks

@Snehasis_Mohapatra

Did u got any update for above issue

Hi ,
i am also getting the same error
org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. Original error: Url or Uri must start with ://

@chelladurai Did you find solution for this?