Skip to content
Lukasz Rajchel edited this page Mar 9, 2015 · 7 revisions

Selenium WebDriver Extensions

Selenium WebDriver extensions is a set of a extensions for Selenium WebDriver that allows you to enhance the possibilities of Selenium. The library has been created as a way of giving Selenium jQuery selector support which can be much more flexible and powerful than build-in Selenium selectors. But since that point the extensions have evolved and currently it supports also Sizzle selectors, query selectors and means to invoke your own JavaScript code a little easier.

The extensions are distributed as a set of nuGet packages on the official nuget.org feed. The library is divided into several smaller packages so that in case you won't to use only part of it's functionality you don't have to install the whole package.

How does it work?

The extensions are provided as C# extensions methods. The new selectors are available via the new By class which is similar to build-in By class but it contains more methods. To achieve some of its extended functionalities the new type has been defined called WebElement which wraps the build-in IWebElement instance and a selector used to locate it on the page. The core selectors have also been wrapped to implement a common interface ISelector that WebElement uses to enable new functionalities.

Clone this wiki locally