Class HTMLPage
java.lang.Object
com.meterware.httpunit.ParsedHTML
com.meterware.httpunit.HTMLPage
This class represents an HTML page returned from a request.
- Author:
- Russell Gold, Benoit Xhenseval
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionReturns the location of the linked stylesheet in the headString[]getMetaTagContent(String attribute, String attributeValue) Retrieves the "content" of the meta tags for a key pair attribute-attributeValue.Returns the onLoad event script.getTitle()Returns the title of the page.voidparse the given test with the given URLMethods inherited from class ParsedHTML
getApplets, getDOM, getElementNames, getElementsWithAttribute, getElementsWithName, getElementWithID, getFirstMatchingForm, getFirstMatchingLink, getFirstMatchingTable, getFirstMatchingTextBlock, getForms, getFormWithID, getFormWithName, getFrames, getImages, getImageWithAltText, getImageWithName, getImageWithSource, getLinks, getLinkWith, getLinkWithID, getLinkWithImageText, getLinkWithName, getMatchingForms, getMatchingLinks, getMatchingTables, getNextTextBlock, getTables, getTableStartingWith, getTableStartingWithPrefix, getTableWithID, getTableWithSummary, getTextBlocks, isWebLink, toString
-
Method Details
-
getTitle
-
getOnLoadEvent
Returns the onLoad event script.- Throws:
SAXException
-
getExternalStyleSheet
Returns the location of the linked stylesheet in the head- Throws:
SAXException
-
getMetaTagContent
Retrieves the "content" of the meta tags for a key pair attribute-attributeValue.this can be used like thisgetMetaTagContent("name","robots") will return { "index","follow" } getMetaTagContent("http-equiv","Expires") will return { "now" } -
parse
parse the given test with the given URL- Parameters:
text-pageURL-- Throws:
SAXExceptionIOException
-