Zennolab.CommandCenter
GetAttribute Method
See Also  Example Send Feedback
Zennolab.CommandCenter Namespace > HtmlElement Class : GetAttribute Method
attrName

Type: System.String

The name of attribute.

Returns the text of attribute.

Syntax

C# 
public string GetAttribute( 
   string attrName
)

Parameters

attrName

Type: System.String

The name of attribute.

Return Value

Type: System.String

The text of attribute.

Example

The following code example demonstrates uses of the GetAttribute method.
C#Copy Code
HtmlElement he = instance.GetTabByAddress("page").GetDocumentByAddress("0").FindElementByAttribute("input:checkbox", "fulltag", "input:checkbox", "text", 0);
            
string attributeText = he.GetAttribute("TagName");
PHPCopy Code
$he = $instance->GetTabByAddress("page")->GetDocumentByAddress("0")->FindElementByAttribute("input:checkbox", "fulltag", "input:checkbox", "text", 0);
            
$attributeText = $he->GetAttribute("TagName");

Requirements

Target Platforms: Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2011 All Rights Reserved.