Package org.openqa.selenium.browserlaunchers.locators

Examples of org.openqa.selenium.browserlaunchers.locators.BrowserInstallation


      // can only be started with a file on the local filesystem as argument
      tempBootstrapJs = unpackBootstrap();

      String executableName = getConfig().getProperty(PROP_PHANTOMJS_BIN);
      if (executableName == null) {
        BrowserInstallation installation = new Locator().findBrowserLocation();
        if (installation == null) {
          throw new InitializationError( //
              "phantomjs could not be found in the path!\n"
                  + "Please add the directory containing 'phantomjs' or 'phantomjs.exe' to your PATH environment\n"
                  + "variable, or explicitly specify a path to phantomjs in stjs-test.properties like this:\n"
                  + PROP_PHANTOMJS_BIN + "=/blah/blah/phantomjs");
        }
        executableName = installation.launcherFilePath();
      }
      new ProcessBuilder( //
          executableName, //
          "--web-security=no", //
          tempBootstrapJs.getAbsolutePath(), //
View Full Code Here

TOP

Related Classes of org.openqa.selenium.browserlaunchers.locators.BrowserInstallation

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.