From the course: Advanced Selenium: Page Objects and GUI Automation

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

How do abstractions help?

How do abstractions help?

From the course: Advanced Selenium: Page Objects and GUI Automation

Start my 1-month free trial

How do abstractions help?

- [Instructor] Abstractions can be a fairly theoretical concept. So I want to try and show some practical examples to demonstrate how they can really help. I can see from this test, which has a can create a to do list method that I want to check that I can create a to do list. I've made some notes for abstraction classes that might help me. I'll start by using the application so we can see what we're trying to automate. There's a very simple to do list application, I need to manage a to do list. So I'll click on manage to do list and that will navigate to it to do lists page. So this shows me all the to do lists I have. And then I need to enter a to do list name, I call it, 'my to do list' and hit Enter. And I can see that the list now has a new to do list in it. So now let's fill out the code to make this work. I'll start by using the navigator to go to the page because one thing we want is for our abstractions to help…

Contents