com.meterware.httpunit
Interface HTMLElement
public
interface
HTMLElement
An interface which defines the common properties for an HTML element, which can correspond to any HTML tag.
Since: 1.5.2
Author: Russell Gold
Method Summary |
String | getAttribute(String name)
Returns the value of the attribute of this element with the specified name.
|
String | getClassName()
Returns the class associated with this element.
|
String | getID()
Returns the ID associated with this element. |
String | getName()
Returns the name associated with this element.
|
ScriptableDelegate | getScriptableDelegate()
Returns the delegate which supports scripting this element. |
String | getTagName()
Returns the tag name of this node.
|
String | getText()
Returns the contents of this element, converted to a string.
|
String | getTitle()
Returns the title associated with this element.
|
boolean | isSupportedAttribute(String name)
Returns true if this element may have an attribute with the specified name.
|
public String getAttribute(String name)
Returns the value of the attribute of this element with the specified name.
Returns the empty string if no such attribute exists.
Since: 1.6
public String getClassName()
Returns the class associated with this element.
public String getID()
Returns the ID associated with this element. IDs are unique throughout the HTML document.
public String getName()
Returns the name associated with this element.
Returns the delegate which supports scripting this element.
public String getTagName()
Returns the tag name of this node.
Since: 1.6.1
public String getText()
Returns the contents of this element, converted to a string.
Since: 1.6
public String getTitle()
Returns the title associated with this element.
public boolean isSupportedAttribute(String name)
Returns true if this element may have an attribute with the specified name.
Since: 1.6