Best Practices for Choosing Locators for Selenium

Wednesday, September 26, 2018

A question that comes often, especially by folks that are new to Selenium, is what are the best practices to use when choosing a locator for an element. In other cases, people just have bad habits and don’t even think to ask this question, but they encounter instabilities or maintenance problems, without knowing that they don’t use the locators effectively. For the sake of clarity, a locator is the combination of the type and the value of the By clause which Selenium WebDriver uses in the FindElement and FindElements methods. As you probably know (given you’re familiar with Selenium), Selenium...

Announcing “Test Automation Essentials”!

Tuesday, August 25, 2015

I’d very glad to announce that I just published a new project on GitHub, and also made it available through NuGet! “Test Automation Essentials” is a set of tools that are handy for any test automation project. It contains all the code that I want to take with me from one project to another. I hope you'll find it useful for your projects too :-) Over time, I intend to add to this project everything that I do and can be helpful to other test projects. Of course that I’d also love to get contributions from the community! The source code itself...