Book Image

Learning Selenium Testing Tools - Third Edition

Book Image

Learning Selenium Testing Tools - Third Edition

Overview of this book

Table of Contents (22 chapters)
Learning Selenium Testing Tools Third Edition
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Chapter 12. Advanced Topics

In this chapter, we will have a look at a number of advanced topics associated with Selenium WebDriver. These are not required to use Selenium WebDriver, but will be useful when there will be problems with testing.

In this chapter, we will learn the following topics:

  • Capturing screenshots

  • Using XVFB with Selenium

  • Working with Browsermob Proxy

So, let's get on with it.

Before we start, it will be good to download all the necessary items. Download the latest version from Browsermob Proxy: https://github.com/webmetrics/browsermob-proxy/downloads, and for XVFB, select sudo apt-get install xvfb.

XVFB only works reliably on Linux. Unfortunately, this will not work on Windows. The following is a screenshot displaying the information to install sudo apt-get install xvfb: