Parameters
- attrName
Type: System.String
The attribute name.
- attrValue
Type: System.String
The new value for this attribute.
The following code example demonstrates uses of the SetAttribute method.
| C# | Copy Code |
|---|---|
// find element HtmlElement he = instance.GetTabByAddress("page").GetDocumentByAddress("0").FindElementByAttribute("input:checkbox", "fulltag", "input:checkbox", "text", 0); // set attribute he.SetAttribute("Name", "NewTextValue"); | |
| PHP | Copy Code |
|---|---|
// find element $he = $instance->GetTabByAddress("page")->GetDocumentByAddress("0")->FindElementByAttribute("input:checkbox", "fulltag", "input:checkbox", "text", 0); // set attribute $he->SetAttribute("Name", "NewTextValue"); | |
Target Platforms: Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family