Skip to content

Commit

Permalink
[functionalTests] implement common.tryMethod() helper
Browse files Browse the repository at this point in the history
  • Loading branch information
spalger committed Sep 20, 2016
1 parent 7d960a1 commit 69fb068
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/support/page_objects/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,10 @@ export default class Common {
return Try.try(block);
}

tryMethod(object, method, ...args) {
return this.try(() => object[method](...args));
}

log(...args) {
Log.log(...args);
}
Expand Down

0 comments on commit 69fb068

Please sign in to comment.