Package com.gargoylesoftware.htmlunit.html

Examples of com.gargoylesoftware.htmlunit.html.ClickableElement.click()


      {
         throw new IllegalStateException("Component with name=" + this.submitComponent + " is not a ClickableElement.");
      }
     
      ClickableElement clickable = (ClickableElement)htmlElement;
      return clickable.click();
   }
  
   /**
    * Find an element by its name attribute and set its value.
    *
 
View Full Code Here


      LOG.info("-> findTarget(by " + button.getTagName() + "): name="
          + button.getAttribute("name") + " value="
          + button.getAttribute("value"));
      return ((HtmlInput) button).click(Integer.parseInt(getX()), Integer.parseInt(getY()));
    }
    return button.click();
  }

  /**
   * Builds an exception with helpfull information
   * @return the exception
View Full Code Here

   public void clickTreeNodeHandle( String treeNodeKey, String treeNodeId ) throws IOException
   {
     final String handleId = ":"+treeNodeKey+"::"+treeNodeId+":handle";
     ClickableElement icon = (ClickableElement)jsfClient.getElement(handleId);
     if( icon == null ) throw new ComponentIDNotFoundException(handleId);
     icon.click();    
   }
  
   /**
    * Click a value on a DataTableScroller.
    *
 
View Full Code Here

    */
   public void clickTab(String tabComponentID)
         throws IOException
   {
      ClickableElement tab = (ClickableElement)jsfClient.getElement(tabComponentID + "_shifted");
      tab.click();
   }
  
   /**
    * Set a parameter value on a RichComboBox component.
    *
 
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.