From the course: Test Automation with Selenium WebDriver for Java

Unlock this course with a free trial

Join today to access over 24,900 courses taught by industry experts.

Code challenge: Implement Page Object Model

Code challenge: Implement Page Object Model

(upbeat energetic music) - [Instructor] In this challenge, use the page object model design pattern to write two tests for the dynamically modified page. One test should verify that when the button hasn't been clicked, the elements is present in the dom. The other test should verify that pressing the button causes the element to be removed from the dom. Remember to separate the framework code from the test code. There is no starting code for this challenge as part of the task is for you to create the necessary classes in the proper locations. Be sure to tune into my solution video for a detailed walkthrough of this challenge.

Contents