Skip to content

Commit

Permalink
- added breaker function to be able to cancel execution when another …
Browse files Browse the repository at this point in the history
…case is passed further

:goose:
  • Loading branch information
maZahaca committed Mar 16, 2019
1 parent dce6458 commit 23e3bd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/actions/ActionWaitForPattern.js
Expand Up @@ -22,7 +22,7 @@ class ActionWaitForPattern extends ActionWait {
return nodes[0].textContent;
}, (text) => {
return text.match(pattern) !== null;
}, [selector, attr]);
}, this._options.breaker, [selector, attr]);
}
}

Expand Down

0 comments on commit 23e3bd1

Please sign in to comment.