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 voidbeginCollectingPages(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.booleanclickItemWithLinkText(java.lang.String linkText)booleanclickItemWithXPath(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.StringgetHTML()RobotWebNodegetRootNode()voidloadURL(java.lang.String url)RobotWebNodenodeForXPath(RobotWebNode rootNode, java.lang.String xpath)RobotWebNodenodeForXPath(java.lang.String xpath)java.util.List<RobotWebNode>nodesForXPath(RobotWebNode rootNode, java.lang.String xpath)java.util.List<RobotWebNode>nodesForXPath(java.lang.String xpath)voidreportError(java.lang.String errorMessage)voidsetImplicitWait(float secondsToWait)voidsetImportKnownFiles(boolean importKnownFiles)booleansetValueForNode(RobotWebNode node, java.lang.String value)booleansetValueForXPath(java.lang.String xpath, java.lang.String value)voidwaitForLoadCompletion(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.
-