Package org.openqa.selenium.chrome

Examples of org.openqa.selenium.chrome.ChromeOptions.addArguments()


      // This flag makes using a synthetic video (green with
      // spinner) in webrtc. Or it is needed to combine with
      // use-file-for-fake-video-capture to use a file faking the
      // cam
      options.addArguments("--use-fake-device-for-media-stream");

      driver = new ChromeDriver(options);
    }
    return driver;
  }
View Full Code Here


          "target/webdriver/" + chromedriver).getAbsolutePath());
      ChromeOptions options = new ChromeOptions();

      // This flag avoids a warning in chrome. See:
      // https://code.google.com/p/chromedriver/issues/detail?id=799
      options.addArguments("--test-type");

      driver = new ChromeDriver(options);
    }
  }
View Full Code Here

        System.setProperty("webdriver.chrome.driver", new File(
            "target/webdriver/" + chromedriver).getAbsolutePath());
        ChromeOptions options = new ChromeOptions();

        // This flag avoids grant the camera
        options.addArguments("--use-fake-ui-for-media-stream");

        // This flag avoids warning in chrome. See:
        // https://code.google.com/p/chromedriver/issues/detail?id=799
        options.addArguments("--test-type");
View Full Code Here

        // This flag avoids grant the camera
        options.addArguments("--use-fake-ui-for-media-stream");

        // This flag avoids warning in chrome. See:
        // https://code.google.com/p/chromedriver/issues/detail?id=799
        options.addArguments("--test-type");

        if (!usePhysicalCam) {
          // This flag makes using a synthetic video (green with
          // spinner) in webrtc. Or it is needed to combine with
          // use-file-for-fake-video-capture to use a file faking the
View Full Code Here

        if (!usePhysicalCam) {
          // This flag makes using a synthetic video (green with
          // spinner) in webrtc. Or it is needed to combine with
          // use-file-for-fake-video-capture to use a file faking the
          // cam
          options.addArguments("--use-fake-device-for-media-stream");

          if (video != null) {
            options.addArguments("--use-file-for-fake-video-capture="
                + video);
View Full Code Here

          // use-file-for-fake-video-capture to use a file faking the
          // cam
          options.addArguments("--use-fake-device-for-media-stream");

          if (video != null) {
            options.addArguments("--use-file-for-fake-video-capture="
                + video);

            // Alternative: lauch fake cam also in Chrome
            // launchFakeCam();
          }
View Full Code Here

          "target/webdriver/" + chromedriver).getAbsolutePath());
      ChromeOptions options = new ChromeOptions();

      // This flag avoids a warning in chrome. See:
      // https://code.google.com/p/chromedriver/issues/detail?id=799
      options.addArguments("--test-type");

      // This flag avoids grant the camera
      options.addArguments("--use-fake-ui-for-media-stream");

      // This flag makes using a synthetic video (green with
View Full Code Here

      // This flag avoids a warning in chrome. See:
      // https://code.google.com/p/chromedriver/issues/detail?id=799
      options.addArguments("--test-type");

      // This flag avoids grant the camera
      options.addArguments("--use-fake-ui-for-media-stream");

      // This flag makes using a synthetic video (green with
      // spinner) in webrtc. Or it is needed to combine with
      // use-file-for-fake-video-capture to use a file faking the
      // cam
View Full Code Here

      // This flag makes using a synthetic video (green with
      // spinner) in webrtc. Or it is needed to combine with
      // use-file-for-fake-video-capture to use a file faking the
      // cam
      options.addArguments("--use-fake-device-for-media-stream");

      driver = new ChromeDriver(options);
    }
  }
View Full Code Here

  protected WebDriver createChromeDriver() {
    ChromeOptions options = new ChromeOptions();
    if (startMaximized) {
      // Due do bug in ChromeDriver we need this workaround
      // http://stackoverflow.com/questions/3189430/how-do-i-maximize-the-browser-window-using-webdriver-selenium-2
      options.addArguments("chrome.switches", "--start-maximized");
    }
    return new ChromeDriver(options);
  }

  protected WebDriver createFirefoxDriver() {
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.