Over the years I've seen varying opinions on whether you should use Xpath locators as anything but a last resort. Back when I started I adopted the standpoint that I would avoid most usage of Xpath, but in situations where it really wasn't practical to have IDs added I would use it as a last... Continue Reading →
Simple Tip: Pass By Locators Into Methods For Maximum Versatility
This may seem like an obvious tip to many, but I've seen a few applications for automated tester roles at my company that fail to do this. When creating methods that interact with elements on a web page, remember to use Selenium WebDriver's By locators. These By locators are super versatile, and will allow you... Continue Reading →
Page Object Model Inheritance
Hopefully you already know the importance of using the Page Object Model to keep your code organised. To keep your code maintainable it's a good practice to have page inherit from a single abstract "BasePage" class. This allows us to have one central place that defines general actions that our pages can perform, and allows... Continue Reading →