Introduction
Measuring and optimizing the client-side performance is essential for a seamless user experience and this is critical for web 2.0 applications using AJAX.
Capturing vital information, such as the time taken for page load, rendering of the elements, and the JavaScript code execution, helps in identifying the areas where performance is slow and optimizes the overall client-side performance.
Sometimes, third-party controls, images, and media content also cause degradation in the performance. Using Selenium WebDriver and various other tools together, we can measure the performance and eliminate the weaker content.
There are various APIs and tools that we can integrate with the Selenium WebDriver for measuring the performance of the client-side user interaction and script code. This chapter contains recipes to use the Selenium WebDriver for testing the client-side performance.