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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.