Introduction
With the increasing adoption of Smartphones and tablets, mobile applications have taken a center stage. Everyone is talking about iPhone, iPad, and Android. It has become essential to build/migrate and test applications for these platforms.
Selenium supports testing web applications in mobile web browsers. In this chapter, we will cover recipes for configuring and using Selenium for testing applications on iOS and Android-based phones and tablets.
We can run automated tests on a simulator/emulator or on a real device using iOS and Android drivers. These drivers implement the RemoteWebDriver for enabling testing through the WebDriver. Both these drivers provide an application that implements RemoteWebDriver server and a lightweight HTTP server. These applications can be installed on a simulator/emulator or on a device for testing.
We will test a mobile web application developed using jQuery mobile on these platforms.
IPhoneDriver architecture
The IPhoneDriver allows running automated...