Implement code timings

Problem The easiest way to get some performance related metrics is to implement timings in your testcode. This will work in every browser which is the big advantage. The disadvantage is probably that we have […]

Implement web.Timings

Problem A new embedded feature in some browsers is the webtimings. This feature works only in Internet Explorer 9 and Google Chrome, by the time this book is published. We can also combine it with […]

Use NetExport to export Firebug’s NET panel

Problem Firebug comes with a create feature which is visible in the NET panel. The NET panel gives use the per item download time in a breakdown structure. This structure is build up from a […]

Use Dynatrace to measure the performance

Problem DynaTrace Ajax Edition is a free tool for optimizing web 2.0 applications. It supports Microsoft Internet Explorer as well as Mozilla Firefox. Dynatrace finds problems and provides a complete picture of what is going […]

Display the HAR format

Problem We have seen the HAR (Http ARchive) format as the output from the BrowserMob proxy implementation and the NetExport implementation. The HAR file contains a log with requests and responses to the server. The […]

Set up a Selenium project environment

Problem This recipe will describe how we can set up our project environment. We will use Eclipse as development environment as further examples will be written in Java, but we can use any IDE which […]

Model the application interface

The first step we have to take in implementing the page object model is that we have to model the user experience. This means that all page specific elements has to be extracted to separate […]

Expose methods

We can expose methods in order to reduce duplicated code. We are able to call the method multiple times. This will ensure a better maintainable test code, because we only have to make adjustments and […]

Locators – Introduction

Locators are the way to tell Selenium with which web element we like to do something (It can be anything, like: clicking, typing, selecting, verifying, etc.). Selenium provides different ways of locating those web elements; […]

Dealing with moving focus

Problem Imagine the following situation: after accepting a confirmation dialog you will be redirected to another page. This recipe will explain how to deal with this inevitable situation. Prerequisites We have made a class file […]