Package com.crawljax.core.configuration

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


    CrawlSpecification crawler = new CrawlSpecification("http://www.google.com");
    crawler.setWaitTimeAfterEvent(500);
    crawler.setWaitTimeAfterReloadUrl(500);

    // click on all anchor tags
    crawler.click("a");
    // and all input tags with "submit"
    crawler.click("input").withAttribute("type", "submit");

    // exclude these
    crawler.dontClick("a").underXPath("//DIV[@id='guser']");
View Full Code Here


    crawler.setWaitTimeAfterReloadUrl(500);

    // click on all anchor tags
    crawler.click("a");
    // and all input tags with "submit"
    crawler.click("input").withAttribute("type", "submit");

    // exclude these
    crawler.dontClick("a").underXPath("//DIV[@id='guser']");
    crawler.dontClick("a").withText("Language Tools");
View Full Code Here

  private static CrawlSpecification getCrawlSpecification() {
    CrawlSpecification crawler = new CrawlSpecification(URL);
    crawler.setRandomInputInForms(false);
    // click these elements

    crawler.click("a");
    crawler.click("button");

    // except these
    crawler.dontClick("a").underXPath("//DIV[@id='guser']");
    crawler.dontClick("a").withText("Language Tools");
View Full Code Here

    CrawlSpecification crawler = new CrawlSpecification(URL);
    crawler.setRandomInputInForms(false);
    // click these elements

    crawler.click("a");
    crawler.click("button");

    // except these
    crawler.dontClick("a").underXPath("//DIV[@id='guser']");
    crawler.dontClick("a").withText("Language Tools");
View Full Code Here

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

    // click these elements
    crawler.click("a");
    crawler.click("input").withAttribute("type", "submit");

    // except these
    crawler.dontClick("a").underXPath("//DIV[@id='guser']");
    crawler.dontClick("a").withText("Language Tools");
View Full Code Here

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

    // click these elements
    crawler.click("a");
    crawler.click("input").withAttribute("type", "submit");

    // except these
    crawler.dontClick("a").underXPath("//DIV[@id='guser']");
    crawler.dontClick("a").withText("Language Tools");
View Full Code Here

  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.