Summary
We learned a lot in this chapter about some of the advanced topics that we may need in tougher times!
Specifically, we covered the following topics:
- Saving screenshots: You learned how to save screenshots of our web applications programmatically. This allows you to know when something happens, and you need to see what caused it!
- Using XVFB: In this section, you learned how to use XVFB to have a virtual display to run our tests in. This can be really useful if you want to run Selenium WebDriver and not worry that when tests run, the browser might suddenly steal focus. This is useful if you are running a number of tests on a single machine and they need to use native events that Selenium WebDriver tries to do on Windows and Linux.
- BrowserMob Proxy: In this section, we had a look at how we can replicate Selenium Remote Control's
captureNetworkTraffic()
method that allows us to see what the browser downloaded during a page load. This is useful if you are doing web performance analysis...