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 Detail

      • 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

        boolean setValueForNode​(RobotWebNode node,
                                java.lang.String value)
      • waitForLoadCompletion

        void waitForLoadCompletion​(float secondsToWait)
      • setImplicitWait

        void setImplicitWait​(float secondsToWait)
      • nodesForXPath

        java.util.List<RobotWebNode> nodesForXPath​(java.lang.String xpath)
      • nodeForXPath

        RobotWebNode nodeForXPath​(java.lang.String xpath)
      • 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.