Interface AbstractionFacade

    • Method Detail

      • findElement

        AbstractNode findElement​(String xPath)
        Finds the single element matching the given XPath.

        An exception is thrown if the XPath does not match exactly one element.

        Parameters:
        xPath - the XPath to find.
        Returns:
        the element matching the given XPath.
        Throws:
        RuntimeException - if the XPath matches zero elements, or more than one.
      • findElements

        List<AbstractNode> findElements​(String xPath)
        Finds all elements matching the given XPath.
        Parameters:
        xPath - the XPath to find.
        Returns:
        a list of all elements matching the given XPath. The list will be empty if no matching elements are found.
      • setThrottling

        void setThrottling​(Long delay)
        Requests to delay ALL user interactions by a fixed amount of time.

        Setting a throttling delay will significantly reduce Oryon performance, and is STRONGLY DISCOURAGED in normal circumstances. Only use this method if you have a good reason to do so.

        Parameters:
        delay - throttling delay, in milliseconds. Setting it to 0 will disable throttling.