Running tests on iOS using the iWebDriver App and iPhone driver

Once we have the iOS simulator or the device set up with the iWebDriver application, you can create and run the tests using the IPhoneDriver class.

In this recipe, we will test a simple mobile BMI calculator web application, developed using jQuery Mobile on the iOS platform.

Getting ready

Before we start running the test with the iPhone driver, set up the iOS simulator or device with the iWebDriver application.

If you are testing on a real device, then make sure it is connected to the machine running the tests using the iPhone driver over the network.

  • Set up the iOS simulator or a real device with the iWebDriver application
  • Set up a new Java project
  • Add the WebDriver JARs to the project's ...

Get Selenium Testing Tools Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.