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.

Refactoring to abstractions

Refactoring to abstractions

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

Start my 1-month free trial

Refactoring to abstractions

- [Instructor] Many people are concerned that they have to design their abstraction layers up front, because they think they're building a framework when the reality is we're building a set of classes in a library and we can grow this organically through refactoring. So this is a very simple test a test with no abstractions which on line 18 opens the application that we're automating the simple Todo list app and then on line 20 finds the location of the imprint field used to create the Todo lists on line 24 we type in the name of a Todo list, in this case it's my first Todo list then on line 27 through to 31 we find the new list item in the list and get to the actual label that displays the list name and then on line 34 I assert that the list name that was created is the list that we typed in. This is using the driver directly there's no abstractions but if I run this test it should work. So hopefully this will bring up the…

Contents