Home / Companies / Octopus Deploy / Blog / Post Details
Content Deep Dive

Selenium series: The TicketMonster test

Blog post from Octopus Deploy

Post Details
Company
Date Published
Author
Matthew Casperson
Word Count
2,535
Language
English
Hacker News Points
-
Summary

Matthew Casperson's blog post delves into creating a Selenium WebDriver test framework using TicketMonster, a sample application by RedHat, as a real-world testing example. The post walks through the process of automating a ticket purchase for a fictional event, detailing the use of various WebDriver techniques for interacting with dynamic web elements and validating outcomes. It highlights the challenges of working with non-optimized applications and the need for explicit waits due to the absence of unique IDs for elements, necessitating alternative methods like name attributes and CSS selectors for element identification. Additionally, the post emphasizes the importance of capturing HAR files to diagnose network-related issues that might affect user experience, even in successful test runs. Casperson also underscores the value of continuous integration using tools like Travis CI to maintain code integrity and discusses plans to enhance the maintainability of the test framework in future series installments.