WebDriver 2.48 Released

The latest version of Selenium WebDriver, 2.48 has been released. You can get the direct link for the downloads for the Selenium Server and the Java and C# bindings below. The changelogs for each, as well as other language bindings can be found on the Selenium Downloads page Downloads: Selenium Server 2.48.2 Java 2.48.2 C# […]

WebDriver 2.47 released

The latest version of Selenium WebDriver, 2.47.0 has been released. You can get the direct link for the downloads for the Selenium Server and the Java and C# bindings below. The changelogs for each, as well as other language bindings can be found on the Selenium Downloads page Downloads: Selenium Server 2.47.0 Java 2.47.0 C# […]

Finding an Element by an Attribute

Sometimes it is not always possible to uniquely identify an element by using the standard ways such as By.ID or By.Name etc. And there can be any number of reasons why this would be the case. However there is an alternative way to find an element by using one of the element’s attributes: [code] driver.FindElement(By.CssSelector(“[title=’Unique […]

WebDriver v2.46 Released

The latest version of Selenium WebDriver, 2.46.0 has been released. You can grt the direct link for the downloads for the Selenium Server and the Java and C# bindings below. The changelogs for each, as well as other language bindings can be found on the Selenium Downloads page Downloads: Selenium Server 2.46.0 Java 2.46.0 C# […]

Ignoring IE Driver Zoom Requirement

Many times I have kicked off an automated test using InternetExplorerDriver() only for it to crash straight away as the zoom was not set to 100%. (Why is this required, it makes no sense to me). Previously the only way I could get around this was to open a new window of Internet Explorer, reset […]

Selenium 2.45 .Net Release Notes

Here are the release notes from the Selenium 2.45 .Net bindings, which were not available online at the time of the release Supports native events for Firefox versions 31 (current ESR), and 24 (immediately previous ESR). Native event support has been discontinued for versions of Firefox later than 33 Removed automatic installation of SafariDriver extention […]

Getting Browser Details in WebDriver

While not a major requirement getting the browser name and version could come in useful in test reports. Use the following code snippet to get the browser name and version: [code] ICapabilities cap = ((RemoteWebDriver)driver).Capabilities; string strBrowserName = cap.BrowserName; string strBrowserVersion = cap.Version; Console.WriteLine(“Testing on Browser {0} v{1}”, strBrowserName, strBrowserVersion); [/code]

Checking a checkbox with WebDriver

For something as simple as checking a checkbox you would think that all the different browser drivers would implement this in the same way. But sadly this is not the case. Firefox expects that you click on a checkbox to check or uncheck it whereas both the IEDriver and ChromeDriver expect you to type a […]