Action
Sets the value of an object specific DOM attribute. This works for attributes of type int, boolean, and string. If the specified attribute does not exist, a new attribute is created.
Availability
This functionality is supported only if you are using the Open Agent.
Syntax
domelement.SetDomAttribute(attributeName, attributeValue)
Variable
|
Description
|
attributeyName
|
The name of the attribute.
STRING.
|
attributeValue
|
The value to set.
ANYTYPE.
|
Example
// modify a dom link to navigate to www.borland.com
domLink.SetDomAttribute(“href”, “http://www.borland.com”)
domLink.Click()
Verify(page.GetUrl(), “http://www.borland.com”)