public void getInfoFromWebDriver(WebDriver webDriver) throws IOException, ParseException {
    org.openqa.selenium.Capabilities cap = ((RemoteWebDriver) webDriver).getCapabilities();
    setProduct(cap.getBrowserName());
    setBrowserVersion(cap.getVersion());

    webDriver.get("http://www.google.com");
    String userAgentString =
        (String) ((JavascriptExecutor) webDriver).executeScript(userAgentScript());
    getInfoFromUserAgent(userAgentString);
  }
Gets info from web driver.

@param webDriver the web driver
@throws IOException the io exception
KITE-WPT-Test/src/main/java/org/webrtc/kite/wpt/RunInfo.java