Time for action – using the iPhone driver - Selenium

In this section, we are going to be looking at running some tests against an iOS device or simulator. This should be a fairly simple change to our test but there are a couple of things that we need to do right before the test runs.

  1. Now we are ready to update our test. I will show an example from the previous test:

  2. Run the test. You will see that it runs the same test against an iOS device. In the previous chapter we had this work against desktop browsers.

What just happened?

We have just seen how we can run our tests against iOS devices. Depending on which simulator we start XCodefrom, we can either have it run against iPhone or iPad.

Have a go hero - updating tests for iOS Devices

Have a look at updating all of the tests that you would have written so far in the book to run on iOS. It should not take you long to update them.

All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd DMCA.com Protection Status

Selenium Topics