Package com.crawljax.core.configuration

Examples of com.crawljax.core.configuration.BrowserConfiguration


    assumeThat(System.getProperty("webdriver.chrome.driver"), notNullValue());
  }

  @Override
  BrowserConfiguration getBrowserConfiguration() {
    return new BrowserConfiguration(BrowserType.CHROME);
  }
View Full Code Here


    }
    if (browser == BrowserType.REMOTE) {
      String remoteUrl = options.getSpecifiedRemoteBrowser();
      builder.setBrowserConfig(BrowserConfiguration.remoteConfig(browsers, remoteUrl));
    } else {
      builder.setBrowserConfig(new BrowserConfiguration(browser, browsers));
    }

    if (options.specifiesDepth()) {
      builder.setMaximumDepth(options.getSpecifiedDepth());
    }
View Full Code Here

    int browsers = 1;
    if (commandLine.hasOption(PARALLEL)) {
      browsers = Integer.parseInt(commandLine.getOptionValue(PARALLEL));
    }
    builder.setBrowserConfig(new BrowserConfiguration(browser, browsers));

    if (commandLine.hasOption(DEPTH)) {
      String depth = commandLine.getOptionValue(DEPTH);
      builder.setMaximumDepth(Integer.parseInt(depth));
    }
View Full Code Here

    }
    builder.setOutputDirectory(outFolder);
    builder.addPlugin(new CrawlOverview());

    // We want to use two browsers simultaneously.
    builder.setBrowserConfig(new BrowserConfiguration(BrowserType.FIREFOX, 2));

    CrawljaxRunner crawljax = new CrawljaxRunner(builder.build());
    crawljax.call();

  }
View Full Code Here

      FileUtils.deleteDirectory(outFolder);
    }
    builder.addPlugin(new CrawlOverview(outFolder));

    // We want to use two browsers simultaneously.
    builder.setBrowserConfig(new BrowserConfiguration(BrowserType.firefox, 2));

    CrawljaxRunner crawljax = new CrawljaxRunner(builder.build());
    crawljax.call();

  }
View Full Code Here

TOP

Related Classes of com.crawljax.core.configuration.BrowserConfiguration

Copyright © 2018 www.massapicom. 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.