Selenium tests, the Object Oriented way

When you are writing Selenium tests to check for elements on your page, by taking the classic approach (checking for each element’s properties at a time), you might get to a large number of assert steps. This increases the lines of code your tests have, make the tests difficult to maintain and tricky to read.

Wouldn’t it be nice if the actual checking part of the test would be small, perhaps one line of code? Pip Corina uses this approach so you’ll be able to take it too! Hence your tests will be small and clean. All you will need to do is model the pages/modules/items by using an Object Oriented approach.