Xpath: Friend Or Foe?

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 →

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 →

Basic Page Object Model

Page objects are one of the simplest ways to organise your test automation code.  The basic principle is to have a class that represents each of your pages.  You then create methods to take the actions that a user would. Without some way of logically organising your code, it soon becomes impossible to maintain.  The... Continue Reading →

Blog at WordPress.com.

Up ↑