Webtest WebTest GitHub Home

Extension Step storeElementAttribute

Description

Retrieves a particular attribute value of an element. E.g. the style attribute could be retrieved for an HTML element such as <TD style='color:green' ...>

Parameters

attributeName
Required? yes
The name of the attribute of interest, e.g. "disabled" or "checked".
description
Required? no
The description of this test step.
htmlId
Required? yes/no
The id of the html element to click on.
property
Required? no
The name of the property in which to store the retrieved value.
propertyName
Required? no
Deprecated. Same as property.
propertyType
Required? no, default is the "defaultPropertyType" as specified in the "config" element is used.
The type of the property in which to store the retrieve value. Either "ant" or "dynamic".
xpath
Required? yes/no
The XPath identifying the html element to click on.

Details

See the clickElement step for an example which uses the <storeElementAttribute> step. See also the storeInputFieldAttribute step to store an attribute of a HTML form input element using form-related criteria.