From the course: Advanced Selenium: Page Objects and GUI Automation
Unlock the full course today
Join today to access over 22,700 courses taught by industry experts or purchase this course individually.
Functional page objects
From the course: Advanced Selenium: Page Objects and GUI Automation
Functional page objects
- [Male] A functional page object models the more logical functions or uses of the page. It's a logical model of the page as compared to a structural model which is a physical model of the page. If the structure of the page changes, then the external interface of a structural page object will change. A functional page object's external interface only changes when the logical function of the page changes, not its structure, because we abstract away the physical implementation. Now this page object that we have in this test is a mix of structure and function. So we'll amend this to be more of a logical page object. Now it might be easier to see this in the test itself again it's a naming of the methods that hint at the logical or structural nature. So countLists seems okay, that seems to work okay for a structural object and a logical object. Now enterTodoListName might be okay, but it might be more logical to call this…
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.