register(name, matcherTemplate)code ยป
Registers a new assertion to expose from the webdriver.testing.Assertion prototype.
Parameters
- name
string The assertion name.
- matcherTemplate
(function(new: goog.labs.testing.Matcher, *): ?|{describe: function(): string, matches: function(*): boolean}) Either the matcher constructor to use, or an object literal defining a matcher.