getProperty
The Get Element Property command will return the result of getting a property of an element.
Usage
$(selector).getProperty(property)
Parameters
Name | Type | Details |
---|---|---|
property | String | name of the element property |
Example
it('should demonstrate the getProperty command', () => {
var elem = $('body')
var tag = elem.getProperty('tagName')
console.log(tag) // outputs: "BODY"
})