|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.meterware.httpunit.ParsedHTML | +--com.meterware.httpunit.TableCell
A single cell in an HTML table.
Method Summary | |
---|---|
java.lang.String |
asText()
Returns the text value of this cell. |
boolean |
equals(java.lang.Object obj)
|
WebApplet[] |
getApplets()
Returns a proxy for each applet found embedded in this page. |
java.lang.String |
getClassName()
Returns the class associated with this element. |
int |
getColSpan()
Returns the number of columns spanned by this cell. |
org.w3c.dom.Node |
getDOM()
Returns a copy of the domain object model associated with this HTML segment. |
java.lang.String[] |
getElementNames()
Returns a list of HTML element names contained in this HTML section. |
HTMLElement[] |
getElementsWithName(java.lang.String name)
Returns the HTML elements with the specified name. |
HTMLElement |
getElementWithID(java.lang.String id)
Returns the HTMLElement with the specified ID. |
WebForm |
getFirstMatchingForm(HTMLElementPredicate predicate,
java.lang.Object criteria)
Returns the first link found in the page matching the specified criteria. |
WebLink |
getFirstMatchingLink(HTMLElementPredicate predicate,
java.lang.Object criteria)
Returns the first link found in the page matching the specified criteria. |
WebTable |
getFirstMatchingTable(HTMLElementPredicate predicate,
java.lang.Object criteria)
Returns the first table in the response which matches the specified predicate and value. |
WebForm[] |
getForms()
Returns the forms found in the page in the order in which they appear. |
WebForm |
getFormWithID(java.lang.String id)
Returns the form found in the page with the specified ID. |
WebForm |
getFormWithName(java.lang.String name)
Returns the form found in the page with the specified name. |
com.meterware.httpunit.WebFrame[] |
getFrames()
Returns the frames found in the page in the order in which they appear. |
java.lang.String |
getID()
Returns the ID associated with this element. |
WebImage[] |
getImages()
Returns the images found in the page in the order in which they appear. |
WebImage |
getImageWithAltText(java.lang.String altText)
Returns the first image found in the page with the specified alt attribute. |
WebImage |
getImageWithName(java.lang.String name)
Returns the image found in the page with the specified name. |
WebImage |
getImageWithSource(java.lang.String source)
Returns the first image found in the page with the specified src attribute. |
WebLink[] |
getLinks()
Returns the links found in the page in the order in which they appear. |
WebLink |
getLinkWith(java.lang.String text)
Returns the first link which contains the specified text. |
WebLink |
getLinkWithID(java.lang.String id)
Returns the link found in the page with the specified ID. |
WebLink |
getLinkWithImageText(java.lang.String text)
Returns the link which contains the first image with the specified text as its 'alt' attribute. |
WebLink |
getLinkWithName(java.lang.String name)
Returns the link found in the page with the specified name. |
WebForm[] |
getMatchingForms(HTMLElementPredicate predicate,
java.lang.Object criteria)
Returns all links found in the page matching the specified criteria. |
WebLink[] |
getMatchingLinks(HTMLElementPredicate predicate,
java.lang.Object criteria)
Returns all links found in the page matching the specified criteria. |
WebTable[] |
getMatchingTables(HTMLElementPredicate predicate,
java.lang.Object criteria)
Returns the tables in the response which match the specified predicate and value. |
java.lang.String |
getName()
Returns the name associated with this element. |
int |
getRowSpan()
Returns the number of rows spanned by this cell. |
com.meterware.httpunit.scripting.ScriptableDelegate |
getScriptableDelegate()
Returns the delegate which supports scripting this element. |
WebTable[] |
getTables()
Returns the top-level tables found in the page in the order in which they appear. |
WebTable |
getTableStartingWith(java.lang.String text)
Returns the first table in the response which has the specified text as the full text of its first non-blank row and non-blank column. |
WebTable |
getTableStartingWithPrefix(java.lang.String text)
Returns the first table in the response which has the specified text as a prefix of the text in its first non-blank row and non-blank column. |
WebTable |
getTableWithID(java.lang.String ID)
Returns the first table in the response which has the specified text as its ID attribute. |
WebTable |
getTableWithSummary(java.lang.String summary)
Returns the first table in the response which has the specified text as its summary attribute. |
java.lang.String |
getTitle()
Returns the title associated with this element. |
int |
hashCode()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.meterware.httpunit.HTMLSegment |
---|
getApplets, getElementNames, getElementsWithName, getElementWithID, getFirstMatchingForm, getFirstMatchingLink, getFirstMatchingTable, getForms, getFormWithID, getFormWithName, getImages, getImageWithAltText, getImageWithName, getImageWithSource, getLinks, getLinkWith, getLinkWithImageText, getMatchingForms, getMatchingLinks, getMatchingTables, getTables, getTableStartingWith, getTableStartingWithPrefix, getTableWithID, getTableWithSummary |
Method Detail |
public int getColSpan()
public int getRowSpan()
public java.lang.String asText()
public org.w3c.dom.Node getDOM()
getDOM
in class com.meterware.httpunit.ParsedHTML
public java.lang.String getID()
getID
in interface HTMLElement
public java.lang.String getClassName()
HTMLElement
getClassName
in interface HTMLElement
public java.lang.String getName()
getName
in interface HTMLElement
public java.lang.String getTitle()
getTitle
in interface HTMLElement
public com.meterware.httpunit.scripting.ScriptableDelegate getScriptableDelegate()
getScriptableDelegate
in interface HTMLElement
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public WebForm[] getForms()
public WebLink[] getLinks()
public WebApplet[] getApplets()
public WebImage[] getImages()
public WebTable[] getTables()
public HTMLElement getElementWithID(java.lang.String id)
public HTMLElement[] getElementsWithName(java.lang.String name)
public java.lang.String[] getElementNames()
public WebForm getFormWithID(java.lang.String id)
public WebLink getLinkWithID(java.lang.String id)
public WebForm getFirstMatchingForm(HTMLElementPredicate predicate, java.lang.Object criteria)
public WebForm[] getMatchingForms(HTMLElementPredicate predicate, java.lang.Object criteria)
public WebForm getFormWithName(java.lang.String name)
public WebLink getLinkWith(java.lang.String text)
public WebLink getLinkWithImageText(java.lang.String text)
public WebLink getLinkWithName(java.lang.String name)
public WebLink getFirstMatchingLink(HTMLElementPredicate predicate, java.lang.Object criteria)
public WebLink[] getMatchingLinks(HTMLElementPredicate predicate, java.lang.Object criteria)
public WebImage getImageWithName(java.lang.String name)
public WebImage getImageWithSource(java.lang.String source)
public WebImage getImageWithAltText(java.lang.String altText)
public WebTable getFirstMatchingTable(HTMLElementPredicate predicate, java.lang.Object criteria)
public WebTable[] getMatchingTables(HTMLElementPredicate predicate, java.lang.Object criteria)
public WebTable getTableStartingWith(java.lang.String text)
public WebTable getTableStartingWithPrefix(java.lang.String text)
public WebTable getTableWithSummary(java.lang.String summary)
public WebTable getTableWithID(java.lang.String ID)
public java.lang.String toString()
toString
in class java.lang.Object
public com.meterware.httpunit.WebFrame[] getFrames()
|
Copyright © 2000-2003 Russell Gold. See license agreement for rights granted. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |