ZennoLab.CommandCenter Assembly > ZennoLab.CommandCenter Namespace > HtmlElement Class : GetAttribute Method |
Type: System.String
The name of attribute.
Type: System.String
The name of attribute.
Type: System.String
The text of attribute.
// find element by attribute HtmlElement he = instance.GetTabByAddress("page").GetDocumentByAddress("0").FindElementByAttribute("input:checkbox", "fulltag", "input:checkbox", "text", 0); // get attribute value string attributeText = he.GetAttribute("TagName");
// find element by attribute $he = $instance->GetTabByAddress("page")->GetDocumentByAddress("0")->FindElementByAttribute("input:checkbox", "fulltag", "input:checkbox", "text", 0); // get attribute value $attributeText = $he->GetAttribute("TagName");
Target Platforms: Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family, Windows Seven