AGU-8136 Selenium Tests the Object Oriented Way | Devoxx

Devoxx Belgium 2018
from Monday 12 November to Friday 16 November 2018.

   Selenium Tests the Object Oriented Way


Programming languages
Programming languages
Beginner & novice level
Room 9 Monday from 17:30 til 18:00

Many times the task of a test automation person is to check that the content displayed on a web page is the expected one. That can mean either just the text, but also image attributes (like the source or the size), link attributes (like: label, URL it points to, whether it opens in a new tab), and so on. The classic approach testers use for such a task is to get these properties from the page with Selenium, then check them by using an assertion for each property. This leads to way too many assertions, and difficult to understand tests, without a clear meaning. In this talk i will show a different approach for checking the contents of web pages, by modelling all the needed properties into Java objects. This way, comparison will be done between expected and actual objects, not each property one by one. This will lead to more meaningful and shorter tests, while also adding reusability and easy maintenance.

automation   testing   Java  
Subscribe to Devoxx on YouTube
Corina Pip
Corina Pip
From Frequentis

Corina is a senior test automation consultant, with focus on testing by means of Java, Selenium, TestNG, Spring, Maven, and other cool frameworks and tools. Previous endeavours from her 10+ years testing career include working on navigation devices and in the online gaming industry. She loves automation and always tries to learn something new, improving her automation skills and spreading the knowledge to her peers. Apart from work, Corina is a testing blogger (, an amateur photographer ( and a GitHub contributor ( . She also tweets at @imalittletester.

Make sure to download the Android or iOS mobile schedule.