Locating dynamic elements

0.0 00 Some websites will dynamically render the web page elements. It can be a huge challenge to select those elements. There are a couple of ways to locate those elements. In this example we […]

Validating the located element

1.0 01 Sometimes the HTML code of an given application is really unstructured and unreadable. That makes it hard to locate the web-page elements. Therefore it could be useful to validate the located element to […]

Implement code timings

5.0 01 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 […]

Implement web.Timings

0.0 00 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 […]

Use NetExport to export Firebug’s NET panel

5.0 01 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 […]

Use Dynatrace to measure the performance

5.0 01 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 […]

Display the HAR format

0.0 00 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 […]

Set up a Selenium project environment

0.0 00 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 […]

Model the application interface

1.0 02 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 […]

Expose methods

0.0 00 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 […]