Examples of clickDefaultElements()


Examples of com.crawljax.core.configuration.CrawlSpecification.clickDefaultElements()

   */
  public static void main(String[] args) {
    CrawljaxConfiguration config = new CrawljaxConfiguration();
    CrawlSpecification crawler = new CrawlSpecification(URL);
    crawler.setMaximumStates(5);
    crawler.clickDefaultElements();
    config.setCrawlSpecification(crawler);
    config.addPlugin(new CrawlOverview());
    try {
      CrawljaxController crawljax = new CrawljaxController(config);
      crawljax.run();
View Full Code Here

Examples of com.crawljax.core.configuration.CrawlSpecification.clickDefaultElements()

    if (args.length < 1) {
      System.err.println("Please give an url as first argument to Crawljax");
      System.exit(1);
    }
    CrawlSpecification crawler = new CrawlSpecification(args[0]);
    crawler.clickDefaultElements();

    CrawljaxConfiguration config = new CrawljaxConfiguration();

    config.setCrawlSpecification(crawler);
View Full Code Here

Examples of com.crawljax.core.configuration.CrawlSpecification.clickDefaultElements()

   * @return the CrawlSpecification from the saved CrawlSession
   */
  public CrawlSpecification getCrawlSpecification() {
    CrawlSpecification spec = new CrawlSpecification(savedCrawlSession.getUrl());
    spec.setMaximumStates(savedCrawlSession.getMapStates().size());
    spec.clickDefaultElements();
    return spec;
  }

  /**
   * @return the crawled url from the saved CrawlSession
View Full Code Here

Examples of com.crawljax.core.configuration.CrawlSpecification.clickDefaultElements()

   */
  public static void main(String[] args) {

    CrawlSpecification spec = new CrawlSpecification(Utils.URL);
    spec.setMaximumStates(5);
    spec.clickDefaultElements();

    CrawljaxConfiguration config = new CrawljaxConfiguration();
    config.setBrowser(BrowserType.firefox);
    config.setCrawlSpecification(spec);

View Full Code Here

Examples of com.crawljax.core.configuration.CrawlSpecification.clickDefaultElements()

   */
  public static void main(String[] args) {

    CrawlSpecification spec = new CrawlSpecification(Utils.URL);
    spec.setMaximumStates(5);
    spec.clickDefaultElements();

    CrawljaxConfiguration config = new CrawljaxConfiguration();
    config.setBrowser(BrowserType.firefox);
    config.setCrawlSpecification(spec);

View Full Code Here

Examples of com.crawljax.core.configuration.CrawlSpecification.clickDefaultElements()

   * @return the CrawlSpecification from the saved CrawlSession
   */
  public CrawlSpecification getCrawlSpecification() {
    CrawlSpecification spec = new CrawlSpecification(savedCrawlSession.getUrl());
    spec.setMaximumStates(savedCrawlSession.getMapStates().size());
    spec.clickDefaultElements();
    return spec;
  }

  /**
   * @return the crawled url from the saved CrawlSession
View Full Code Here

Examples of com.crawljax.core.configuration.CrawlSpecification.clickDefaultElements()

  }

  private static CrawlSpecification getCrawlSpecification() {
    CrawlSpecification crawler = new CrawlSpecification(URL);

    crawler.clickDefaultElements();
    crawler.dontClick(ALL_ANCHORS).underXPath(HEADER_XPATH);
    crawler.dontClick(ALL_ANCHORS).withText(LANGUAGE_TOOLS);

    // limit the crawling scope
    crawler.setMaximumStates(MAX_STATES);
View Full Code Here

Examples of com.crawljax.core.configuration.CrawlSpecification.clickDefaultElements()

    if (args.length < 1) {
      System.err.println("Please give an url as first argument to Crawljax");
      System.exit(1);
    }
    CrawlSpecification crawler = new CrawlSpecification(args[0]);
    crawler.clickDefaultElements();

    CrawljaxConfiguration config = new CrawljaxConfiguration();

    config.setCrawlSpecification(crawler);
View Full Code Here

Examples of com.crawljax.core.configuration.CrawlSpecification.clickDefaultElements()

  }

  private static CrawlSpecification getCrawlSpecification() {
    CrawlSpecification crawler = new CrawlSpecification(URL);

    crawler.clickDefaultElements();
    crawler.dontClick(ALL_ANCHORS).underXPath(HEADER_XPATH);
    crawler.dontClick(ALL_ANCHORS).withText(LANGUAGE_TOOLS);

    // limit the crawling scope
    crawler.setMaximumStates(MAX_STATES);
View Full Code Here

Examples of com.crawljax.core.configuration.CrawlSpecification.clickDefaultElements()

  private static CrawlSpecification getCrawlSpecification() {
    CrawlSpecification crawler = new CrawlSpecification(URL);

    // click these elements
    crawler.clickDefaultElements();
    crawler.click("div").withAttribute("class", "clickable");

    // but don't click these
    crawler.dontClick("a").withAttribute("class", "ignore");
    crawler.dontClick("a").underXPath("//DIV[@id='footer']");
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.