Using Mobile Emulation for testing mobile web applications

The Chrome browser allows users to emulate Chrome on mobile devices, such as Pixel 2, Nexus 7, iPhone, or iPad, from the desktop version of Chrome via DevTools. The following screenshot shows how our sample application will be seen in Chrome for iPhone. We can start the mobile emulation in Chrome browser with the following steps:

  1. Navigate to the sample web application in the Chrome Browser:
  1. Open the Developer Tools. Select the blue Mobile device icon and then select the device. In this example, we selected iPhone X. The Chrome browser will reload according to the selected device: ...

Get Selenium WebDriver 3 Practical Guide - Second Edition 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.