ZennoLab.CommandCenter Assembly > ZennoLab.CommandCenter Namespace > HtmlElement Class : SetAttribute Method |
Type: System.String
The attribute name.
Type: System.String
The new value for this attribute.
Type: System.String
The attribute name.
Type: System.String
The new value for this attribute.
// find element HtmlElement he = instance.GetTabByAddress("page").GetDocumentByAddress("0").FindElementByAttribute("input:checkbox", "fulltag", "input:checkbox", "text", 0); // set attribute he.SetAttribute("Name", "NewTextValue");
// 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, Windows Seven