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
getProperty.js
it('should demonstrate the getProperty command', async () => {
var elem = await $('body')
var tag = await elem.getProperty('tagName')
console.log(tag) // outputs: "BODY"
})