Skip to Main Content
Mastering Mobile Test Automation
book

Mastering Mobile Test Automation

by Gaurav Gupta
May 2015
Intermediate to advanced content levelIntermediate to advanced
274 pages
6h 22m
English
Packt Publishing
Content preview from Mastering Mobile Test Automation

User agent simulation for mobile

To overcome the problem of user agent sniffing, new browsers were designed to allow for spoofing or simulation of the user agent as a means of bypassing discriminatory server rules. This capability has since then persisted and all modern browsers today have the feature of user agent string simulation as an inbuilt capability. So, using this feature to our advantage, we can simulate the user agent of a mobile device while accessing any mobile web application through any browser. On sniffing the user agent, the server would take the request to be originating from a mobile device and hence would respond with the mobile view. Thus, we would be able to get the mobile web application interface from a desktop browser. ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mobile Test Automation with Appium

Mobile Test Automation with Appium

Nishant Verma
Advanced UFT 12 for Test Engineers Cookbook

Advanced UFT 12 for Test Engineers Cookbook

Meir Bar-Tal, Jonathon Lee Wright

Publisher Resources

ISBN: 9781782175421Supplemental Content