Package org.openqa.selenium.os

Examples of org.openqa.selenium.os.CommandLine.execute()


  public void afterEach() {
    driver.quit();

    // Make sure Opera is gone
    CommandLine line = new CommandLine("kill", "`pgrep opera`");
    line.execute();
  }

  @Test
  @Ignore
  // TODO(andreastt): Should be made local
View Full Code Here


  private static String executeCommand(String commandName, String... args) {
    CommandLine cmd = new CommandLine(commandName, args);
    logger.fine(cmd.toString());

    cmd.execute();
    String output = cmd.getStdOut();

    if (!cmd.isSuccessful()) {
      throw new WebDriverException(
          String.format("exec return code %d: %s", cmd.getExitCode(), output));
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.