Checks if the type (i.e. tag name) of a specified element is of an expected value.
Usage
Example
this.demoTest = function (browser) {
browser.expect.element('#q').to.be.an('input');
browser.expect.element('#q').to.be.an('input', 'Testing if #q is an input');
browser.expect.element('#w').to.be.a('span');
}
Parameters
Name | Type | description |
---|---|---|
type |
string | The expected type |
message Optional |
string | Optional log message to display in the output. If missing, one is displayed by default. |