Page Object Model

Page Objects are a way to encapsulate the technical details of a web page and the services it provides so that the developer of a test does not need to delve into the structure of the webpage. Essentially the Page Object acts as an interface between the web page and the testing of that page. […]

How to execute JavaScript in your C# tests

In WebDriver you can call javascript functions programatically without having to click on a link with javascript code as the href attribute. This functionality uses the IJavaScriptExecutor interface. This allows you to execute javascript commands on your browser from your Selenium Webdriver test. Here is a short example to get the current URL: Or you […]

How to MouseOver in your C# tests

I have created a fairly simple to use C# method to perform a MouseOver operation, all you need to do is to specify the web element to MouseOver. Add the following using statement first: Then create the following method: Its fairly easy to use and I have a sample of how to call it below:

WebDriver 2.43 released

A new version of WebDriver has been released on September 9th. Java: Download – Changelog C#: Download – Changelog The C# NuGet packages have also been update to version 2.43 For further language bindings, documentations and information you can find the link to the Selenium HQ Download page on the Resources page.

Using ChromeDriver Options

There are a number of different ChromeDriver options (and for the other browsers too) that allow us to control how the browser starts up. In this example we see how Chrome is started when no options are selected: Using the following options we can specify that Chrome start without the warning message and that it […]