Open GoogleCodeExporter opened 9 years ago
Original comment by samu...@chromium.org
on 21 Feb 2015 at 12:18
We can use excludeSwitches with ChromeOptions as in sample code:
Sample Code:
ChromeOptions options = new ChromeOptions();
options.addArguments("--disable-logging");
options.setExperimentalOption("excludeSwitches",
Arrays.asList("enable-logging","log-level"));
DesiredCapabilities capabilities = DesiredCapabilities.chrome();
capabilities.setCapability(ChromeOptions.CAPABILITY, options);
WebDriver driver = new RemoteWebDriver(new URL(
"http://localhost:4444/wd/hub"), capabilities);
driver.get("http://google.com");
Thread.sleep(1000);
long navigationStart = (long)
((JavascriptExecutor)driver).executeScript("return
performance.timing.navigationStart");
long responseStart = (long) ((JavascriptExecutor)driver).executeScript("return
performance.timing.responseStart");
System.out.format("%d - %d = %d", navigationStart,responseStart,
responseStart-navigationStart);
Please try as in sample code and let us know if we differ from what you are
doing
Original comment by ssudunag...@chromium.org
on 3 Apr 2015 at 10:45
Original issue reported on code.google.com by
ben.hast...@gmail.com
on 26 Aug 2013 at 3:51