SetWebElementAttribute |
Top Previous Next |
×V4.1Ø
Syntax - SetWebElementAttribute <AttributeName> <AttributeValue> <Element Identifier> Where: <AttributeName> is a literal string or a variable that contains a literal string. <AttributeValue> is a literal string or a variable that contains a literal string. <Element Identifier> is a valid web element identifier as described in Identifying an Element.
Description: This command is used to change the value of a particular attribute of a web element. If the attribute does not exist for the element, it will be created and set to the value specified by <AttributeValue>. This command should be used only under very specific circumstances and with extreme caution as it could have unintended results. Also note that this command only changes the attribute in the page currently displayed in the browser and will not persist if the page is refreshed.
Soarian SmartUI: Yes Chrome: No
Sample: The following statement sets a one pixel border around the element specified. SetWebElementAttribute "border" "1" "Dialog=Main:wellFrame:Button,ID=ctlFindNowButton,INDEX=1"
See Also:
|