Launching the Selenium Grid Hub

0.0 00 Problem We want to start Selenium HUB, which is the central point in the Grid that will receive all Selenium commands and route them to the right node. Prerequisites Download the latest version […]

Selenium Grid introduction

1.9 11 Selenium Grid allows us to have multiple Selenium instances on multiple machines and then have one point to send Selenium commands to. We can specify the operating system / browser and browser version […]

Running tests on an Android simulator

0.0 00 Problem The android driver allows us to execute our tests against an Android browser. This can be a simulator or a real device. This recipe will walk us through the steps we have […]

Run tests on a real Android device

1.9 30 Problem We want to run our testscripts on a real Android device. The android driver allows us to execute our tests against an Android browser. This can be a simulator or a real […]

Run test scripts against a real iPhone device

4.3 09 Problem We want to execute our testscripts on a iphone device. The iphone driver allows us to execute the WebDriver tests on a real iphone device. Prerequisites We need to install Xcode which […]

Run test scripts on a Xcode iPhone simulator

4.6 05 Problem We want to run our test in a iPhone simulator. The iphone simulator comes with Xcode which is available for the Mac operating systems. This recipe will show us how we can […]

Perform a sequence of actions with Selenium WebDriver

4.6 119 Problem We want to perform multiple actions in once, like: drag-and-drop, sliding, selecting multiple items. Solution The example code below shows some examples where we can use the Actions interface of Selenium WebDriver. […]

Control a selectbox or dropdownbox with Selenium WebDriver

5.0 02 Problem We want to select and deselect selectbox options with Selenium WebDriver. Solution The example code below shows the variety of methods we can use to control a selectbox. We can also determine […]

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