Skip to content

Latest commit

 

History

History

chain-helper-methods

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Chain helper methods

Test Code: index.js

This example demonstrates how to chain helper methods defined in a separate file.

The index.js test file imports a Helper class from helper.js. The helper contains customized test actions (t.click and t.typeText), as well as additional methods that facilitate method chaining.

Note that we import the test controller object into the helper file. That way, helper functions connect to the correct test controller instance without additional invocations of the t object.