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
From the course: Test Automation with Selenium WebDriver for Java
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
-
-
-
-
-
-
-
-
-
-
(Locked)
Framework and tests1m 12s
-
(Locked)
Page Object Model design pattern1m 16s
-
(Locked)
Initializing elements3m 1s
-
(Locked)
Implementing interaction methods5m 3s
-
(Locked)
Using Page Objects in tests7m 45s
-
(Locked)
Code challenge: Implement Page Object Model47s
-
(Locked)
Solution: Implement Page Object Model4m 5s
-
(Locked)
-