Examples of HtmlElementNotFoundException


Examples of org.jboss.jopr.jsfunit.exceptions.HtmlElementNotFoundException

      // Get the results table.
      //client.getElement("historyDetailsPanel_body");
      HtmlDivision resultsDiv = (HtmlDivision) client.getElement("operationResults");
      if( null == resultsDiv )
        throw new HtmlElementNotFoundException("#operationResults - a div around a results table.");

      HtmlTable resultsTableElm = resultsDiv.getFirstByXPath(".//table[@class='properties-table']");
      if( null == resultsTableElm )
        throw new HtmlElementNotFoundException(".//table[@class='properties-table'] - a results table.");
      ContentTable resultsTable = ejtt.getTabMenu().getTabContentBox().getTable(resultsTableElm);
     
      // Process the results table.

      // Exit Code
View Full Code Here

Examples of org.jboss.jopr.jsfunit.exceptions.HtmlElementNotFoundException

      // Get the results table.
      //client.getElement("historyDetailsPanel_body");
      HtmlDivision resultsDiv = (HtmlDivision) client.getElement("operationResults");
      if( null == resultsDiv )
        throw new HtmlElementNotFoundException("#operationResults - a div around a results table.");

      HtmlTable resultsTableElm = resultsDiv.getFirstByXPath(".//table[@class='properties-table']");
      if( null == resultsTableElm )
        throw new HtmlElementNotFoundException(".//table[@class='properties-table'] - a results table.");
      ContentTable resultsTable = ejtt.getTabMenu().getTabContentBox().getTable(resultsTableElm);

      // Process the results table.

      // Exit Code
View Full Code Here

Examples of org.jboss.jopr.jsfunit.exceptions.HtmlElementNotFoundException

  class NavTree {

    private void clickRootNode() throws IOException, EmbJoprTestException {
      DomElement element = (DomElement)client.getElement("navTreeForm");
      if( null == element )
        throw new HtmlElementNotFoundException("Can't find #navTreeForm.");

      // ID changes upon core build?
      //HtmlAnchor rootNodeLink = element.getFirstByXPath("//a[@id='navTreeForm:navTree:2::homeLink']");

      // javax.xml.transform.TransformerException: Can't find function: matches
      //HtmlAnchor rootNodeLink = element.getFirstByXPath(
      //        "//a[matches(@id,'^navTreeForm:navTree:.+::homeLink$')]");


      String xPath = "//a[ starts-with( @id, 'navTreeForm:navTree:' ) " +
                         " and contains( @id, '::homeLink' ) ]"; // XPath 2.0: ends-with( @id, '::homeLink' )
      HtmlAnchor rootNodeLink = element.getFirstByXPath(xPath);

      if( null == rootNodeLink )
        throw new HtmlElementNotFoundException("Root node not found using XPath: "+xPath);

      rootNodeLink.click();
    }
View Full Code Here

Examples of org.jboss.jopr.jsfunit.exceptions.HtmlElementNotFoundException

      checkIfStillValid();

      HtmlButtonInput button = this.box.getFirstByXPath("//input[@value='"+label+"']");
      if( null == button )
        throw new HtmlElementNotFoundException("Button labelled '"+label+"' not found.");

      return button;
     
    }
View Full Code Here

Examples of org.jboss.jopr.jsfunit.exceptions.HtmlElementNotFoundException

     
        HtmlForm form = (HtmlForm)client.getElement(formName);
       
        if( null == form ){
            // Wrapped. Don't want to add "throws Html..." all over the project.
            throw new RuntimeException(new HtmlElementNotFoundException(
                                       "Element " + formName + " not found. Page dumped.", this));
        }

        HtmlInput input = (HtmlInput)form.getFirstByXPath(".//input[@ondblclick='//"
                          + propertyName + "']");
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.