From the course: Advanced Selenium: 3 Synchronization Strategies
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Custom synchronized components - Selenium Tutorial
From the course: Advanced Selenium: 3 Synchronization Strategies
Custom synchronized components
- [Instructor] So I like the idea of a standard interface for creating components with a built in waiting mechanism to help me synchronize, but I don't really like throwing errors. So I'm going to use this test, the Custom Sync Component Example Test to explore creating a custom ButtonComponent that uses a common abstraction layer that we have control over. Now this test, we're going to look at the CanClickOnSecondButtonsWithComponent is automating the hard to automate buttons. So in this page, the buttons where the Start button appears later, then there's a delay when we click on one of the buttons before the next one is enabled, but the buttons are in the dorm already. So the test will look at this. So the ButtonComponent at the moment, is a standard very basic component. Here, it's not extending this LoadableComponent, we did that in another video. So I'm going to instead extend my own custom class. So I'm going…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.