Book Image

Mastering Mobile Test Automation

Book Image

Mastering Mobile Test Automation

Overview of this book

Table of Contents (16 chapters)
Mastering Mobile Test Automation
About the Authors
About the Reviewers

Chapter 3. User Agent – automating Mobile Applications with Browsers

In previous chapters, we learned about the concepts of mobile testing automation, and in this chapter we will learn the practical implementation of each of the approaches we have learned till now in greater detail.

In this chapter, we will specifically focus on the automation of a mobile application through the user agent spoofing technique.

This chapter will cover the following topics:

  • What are user agents

  • User agent simulation or spoofing

  • Advantages and disadvantages of this technique

  • How to set the mobile test automation lab for this technique

  • Sample code explaining the concepts

  • Troubleshooting and best practices