getProperty
The Get Element Property command will return the result of getting a property of an element.
Usage
browser.getProperty(property)
Parameters
Param | Type | Details |
---|---|---|
property optional | param | name of the element property |
Example
it('should demonstrate the getCssProperty command', function () {
var elem = $('body')
var color = elem.getProperty('tagName')
console.log(color) // outputs: "BODY"
})