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
: