TUTORIAL1B – The waiting game – how to design reliable Selenium tests

November 9, 2023 from 9:00 to 12:00

Speaker: Corina Pip, Deloitte Digital (RO)

Corina is a Test and Automation Lead, with a focus on testing by means of Java, Selenium, TestNG, Spring, Maven, and other cool frameworks and tools. Previous endeavors from her 11+ years testing career include working on navigation devices, in the online gaming industry, in the aviation software and automotive industries. Apart from work, Corina is a testing blogger and a GitHub contributor. She is the creator of a wait based library for Selenium testing and creator of “The Little Tester” comic series. She also tweets at @imalittletester.

The biggest issue when it comes to Selenium tests is attempting to interact with the page elements when they are not ready. Trying to click an element before it is available, trying to select a value from a dropdown when it is not yet populated, checking an element attribute before it is available – these are some of the most common reasons for failures when it comes to Selenium tests. Such issues can be avoided by using the WebDriverWait Java class to redesign the way you interact with your page. In this workshop, Corina will show you how to get from click to click and wait, from selecting a dropdown value to wait and select, and so on. She will show you how to replace your standard Selenium commands, like click, with customized waits that you can write to adapt to your test environment conditions. Corina will also show you how to rethink your page interactions from a waiting perspective. And, as an added bonus, how you can replace some of the assertions you write with corresponding wait methods.