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...

TestAutomationEssentials.Selenium (Beta) is now available!

Sunday, March 20, 2016

I'm excited to share with you that I've added a new library to the Test Automation Essentials suite, that includes reusable code for Selenium based tests! This is a Beta version because it still doesn't include XML documentation and unit tests, which I try to include in the released versions. However, it is tested and is used in production in one of my customers! To start using it, simply add it as a NuGet package as follows: Right click on the Project References Select "Manage NuGet Packages..." Make sure that "Online" is selected In the search box, type "TestAutomationEssentials.Selenium". The package should appear in the...