Interface RobotWebSession
public interface RobotWebSession
Interface for a browser session, allowing for a script to navigate the web
programatically with a full web browser including javascript and UI capabilities.
-
Method Summary
Modifier and Type Method Description void
beginCollectingPages(java.lang.String mimeType, java.lang.String domain, java.lang.String path, boolean download)
Tells the web session to begin collecting pages with the given parameters.boolean
clickItemWithLinkText(java.lang.String linkText)
boolean
clickItemWithXPath(java.lang.String xpath)
java.util.List<RobotWebPage>
getCollectedPages()
Gets all of the collected pages that have been gathered since the last call to this or the beginCollectingPages method.java.lang.String
getHTML()
RobotWebNode
getRootNode()
void
loadURL(java.lang.String url)
RobotWebNode
nodeForXPath(RobotWebNode rootNode, java.lang.String xpath)
RobotWebNode
nodeForXPath(java.lang.String xpath)
java.util.List<RobotWebNode>
nodesForXPath(RobotWebNode rootNode, java.lang.String xpath)
java.util.List<RobotWebNode>
nodesForXPath(java.lang.String xpath)
void
reportError(java.lang.String errorMessage)
void
setImplicitWait(float secondsToWait)
void
setImportKnownFiles(boolean importKnownFiles)
boolean
setValueForNode(RobotWebNode node, java.lang.String value)
boolean
setValueForXPath(java.lang.String xpath, java.lang.String value)
void
waitForLoadCompletion(float secondsToWait)
-
Method Details
-
getHTML
java.lang.String getHTML() -
loadURL
void loadURL(java.lang.String url) -
setImportKnownFiles
void setImportKnownFiles(boolean importKnownFiles) -
clickItemWithLinkText
boolean clickItemWithLinkText(java.lang.String linkText) -
clickItemWithXPath
boolean clickItemWithXPath(java.lang.String xpath) -
setValueForXPath
boolean setValueForXPath(java.lang.String xpath, java.lang.String value) -
setValueForNode
-
waitForLoadCompletion
void waitForLoadCompletion(float secondsToWait) -
setImplicitWait
void setImplicitWait(float secondsToWait) -
getRootNode
RobotWebNode getRootNode() -
nodesForXPath
-
nodesForXPath
-
nodeForXPath
-
nodeForXPath
-
reportError
void reportError(java.lang.String errorMessage) -
beginCollectingPages
void beginCollectingPages(java.lang.String mimeType, java.lang.String domain, java.lang.String path, boolean download)Tells the web session to begin collecting pages with the given parameters. This also clears any pages that have already been collected. -
getCollectedPages
java.util.List<RobotWebPage> getCollectedPages()Gets all of the collected pages that have been gathered since the last call to this or the beginCollectingPages method. In other words, this resets the list of collected pages.
-