Class: World

World

Sharing code and Data between steps. Using world we can add helper methods, or logging.


new World(attach, parameters)

Instantiate the object

Parameters:
Name Type Description
attach JSON

attach anything

parameters Command

sets the parameters as command

Source:

Methods


sleep(milliseconds)

Sleep

Parameters:
Name Type Description
milliseconds String

milli seconds

Source:
Returns:

return promise

Type
Bluebird

switchTab(tabNum)

Easy switch browser tabs

Parameters:
Name Type Default Description
tabNum Number 0
Source:
Returns:
Type
TargetLocator