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 |
|---|---|
HtmlElement he = instance.GetTabByAddress("page").GetDocumentByAddress("0").FindElementByAttribute("input:checkbox", "fulltag", "input:checkbox", "text", 0); he.SetAttribute("Name", "NewTextValue"); | |
| PHP | Copy Code |
|---|---|
$he = $instance->GetTabByAddress("page")->GetDocumentByAddress("0")->FindElementByAttribute("input:checkbox", "fulltag", "input:checkbox", "text", 0); $he->SetAttribute("Name", "NewTextValue"); | |
Target Platforms: Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family