Methods
(async, static) execute(action)
- Source:
Executes the action once and multiple times tries to match it with the expected condition.
Parameters:
Name | Type | Description |
---|---|---|
action |
(async, static) expectExecutedAction(fn)
- Source:
Executes an action and expects to match with that certain expectation.
Parameters:
Name | Type | Description |
---|---|---|
fn |
function | Action to execute |
(async, static) repeatAction(action, condition)
- Source:
Executes an action multiple times and matches it with the expected condition. This case is useful i.e. when you need to click on the button, Protractor allegedly do it and proceed further but actually click didn't happen.
Parameters:
Name | Type | Description |
---|---|---|
action |
||
condition |
(async, static) times(action, timesToExecute, timeout)
- Source:
Executes the same action N times with a timeout between actions. This method is required when you can't apply any condition to be sure that action was occurred, but you find some piece of code quite flaky in Protractor and once in a while this action is not happening.
Parameters:
Name | Type | Description |
---|---|---|
action |
||
timesToExecute |
||
timeout |