O'Reilly logo

Selenium Testing Tools Cookbook by Unmesh Gundecha

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required