Package com.crawljax.test

Examples of com.crawljax.test.BaseCrawler.crawl()


  @Test
  public void whenJavaScriptNavigatesAwayFromPageItIsBlocked() throws Exception {
    BaseCrawler crawler = new BaseCrawler("navigate_other_urls.html");
    // crawler.showWebSite();
    CrawlSession session = crawler.crawl();
    assertThat(session.getStateFlowGraph(), hasStates(5));
  }
}
View Full Code Here


  @Test
  public void webBrowserWindowOpensItIsIgnored() {
    BaseCrawler crawler =
            new BaseCrawler(Resource.newClassPathResource("/site"), "download/download.html");
    CrawlSession crawl = crawler.crawl();
    assertThat(crawl.getStateFlowGraph(), hasStates(2));
  }
}
View Full Code Here

  @Test
  public void webBrowserWindowOpensItIsIgnored() {
    BaseCrawler crawler =
            new BaseCrawler(Resource.newClassPathResource("/site"), "download/download.html");
    CrawlSession crawl = crawler.crawl();
    assertThat(crawl.getStateFlowGraph(), hasStates(2));
  }
}
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.