- fix #9: Custom functions not attached when makeParentPo inside of makeListPo
- feat: Add function getValueTrim (Issue #7)
- fix: Custom functiions not being attached to elements within a row using
makeListPo
(Issue #8) - Update test to angularJs v1.6.5
- feat: Add
clear
function to element returned from makeDdSelectPo; selects the first item in the dropdown select. - feat: Add
poFns.hasClass
function. Available as custom function. Resolves totrue
if className parameter is a classname on the element; egexpect(clientPo.deleteHobbyButton.hasClass('yada')).toBe(true)
See How to append custom functions. - fix:
poFns.clearByBs
didn't return a promise. - Deprecating
makeButtonWithPausePo
andpoFns.clickWithPause
function. - docs: Updated for above and other minor updates
- feat: Add
poFns.clearByBs
function. Use to clear a date field in Chrome. See Protractor Issue #562. See example in ngpo readme How to append custom functions
- feat: Allow arguments to custom functions.
- Breaking changes: There are no breaking changes to the ngpo api but v6.x or greater of nodejs is required for ngpo v2.x.
- feat: Add 'isVisible' function. Issue #4. Returns true (in promise) if el.isPresent() and el.isDisplayed().
- feat: Add 'getValue' function to parentPo (result from makeParentPo()). Issue #3. parentPo getValue() returns full text value of all children. See test/test.js clientPo.allBoutRocks.getValue() for example.
- Fix to work with Protractor v5.1 (test of locator failed; might have also failed in Protractor versions 4.x &/or 3.x).
- No breaking changes
- Fix to makeParentPo
- Fix Issue #1: Custom functions are not being attached to po if it is sub-element of 'makeParentPo'
- Fix Issue #2: makeListPo elements cannot be nested within makeParentPo
- Allow custom functions to be included in page object via els
fns
property - Update README to include documentation for ngpo functions
- Initial version