Skip to content

jim-coffey/ptor-utils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Protractor Utility Functions

Exports PtorUtils Class containing utility functions designed for use in Protractor testing

Require in to your Protractor specs, instantiate utilities object, and call functions or instantiate further objects where needed.

  • waitForPromiseTest

    Utility function to handle blocking-wait-for-condition Passed a Promise Function and a Test Function The browser wait gets called as many times as needed until the promise is fullfilled If the promise is never fulfilled, timeouts will Fail the test Credits to Emmit Pickerell's blog : http://docsplendid.com/archives/209 Functionality extended to accept an array of arguments that can be passed to the Promise Function

  • hasClass

    Utility function to check whether element has exact match for a class. Returns a promise.

  • containsOneOfText

    Utility Function to check whether text contains any of an array of text values i.e. the needles we're checking for.

  • OptionsWrapper

    Utility Class for wrapping elements with multiple options and simplifying access to setting and getting those options.

About

Angular Protractor testing framework utility functions

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published