Hi Bhuvana,
I am trying to setup ios driver tests in MAC OSX 10.6
I have started my server with
$java -jar ios-server-0.6.6-SNAPSHOT.jar -aut ~/InternationalMountains.app -port 5555 -simulators
Server is invoked successfully
in a browser I see only below JSON
I dont have any supported app related info
{
"class": "org.openqa.selenium.remote.Response",
"hCode": 960985732,
"sessionId": null,
"state": null,
"status": 0,
"value": {
"build": {
"revision": "120cf4311807e2e137e519f4c4877cf6340d0cbc",
"time": "20130927-1435",
"version": "0.6.5"
},
"ios": {"simulatorVersion": "7.0"},
"java": {"version": "1.7.0_25"},
"os": {
"arch": "x86_64",
"name": "Mac OS X",
"version": "10.9.1"
},
"state": "success",
And when I run my test:
public static void main(String[] args) throws MalformedURLException {
// create a selenium desiredCapabilities object with the right values.
DesiredCapabilities cap = IOSCapabilities.iphone("InternationalMountains", "1.1");
// start the application
RemoteWebDriver driver = new RemoteWebDriver(new URL("http://localhost:5555/wd/hub"), cap);
// check that the 9 mountains of the app are there.
List<Weblement> cells = driver.findElements(By.className("UIATableCell"));
Assert.assertEquals(9,cells.size());
// get the 1st mountain
WebElement first = cells.get(0);
first.click();
// take a screenshot using the normal selenium api.
TakesScreenshot screen =(TakesScreenshot)new Augmenter().augment(driver);
File ss = new File("screenshot.png");
screen.getScreenshotAs(OutputType.FILE).renameTo(ss);
System.out.println("screenshot take :"+ss.getAbsolutePath());
// access the content
By selector = By.xpath("//UIAStaticText[contains(@name,'climbed')]");
WebElement text = driver.findElement(selector);
System.out.println(text.getAttribute("name"));
// end the test
driver.quit();
}
I get Below error message

Please help. Let me know if I am missing any configuration.