The ability to reply to discussions is limited to PRO members. Want to join in the discussion? Click here to subscribe now.

Testing With Protractor Page Objects

Testing With Protractor Page Objects

3:28
Protractor Page Objects are a recommended for testing your AngularJS applications. Page Objects abstract the interaction between the browser and your functional tests, resulting in much cleaner tests.
Watch this lesson now
Avatar
egghead.io

Protractor Page Objects are a recommended for testing your AngularJS applications. Page Objects abstract the interaction between the browser and your functional tests, resulting in much cleaner tests.

Avatar
Rob

How does element(by.id('button1')) work as it gets called before the browser gets to the page with the button on it. Will protractor just lazily find the element when click() is called?

Avatar
Bulkan

In my tests I'm finding that the locator is resolved on page object instantiation causing a few test failures. I've used Object.defineProperty to provide some lazy evaluated locators

In reply to Rob
Avatar
Victor Alfonso Hazbun Anuff

is the IndexPage.js file under e2e/index folder, correct?

HEY, QUICK QUESTION!
Joel's Head
Why are we asking?