Examples of captureBrowser()


Examples of com.google.jstestdriver.browser.BrowserHunter.captureBrowser()

  public void testCaptureAndGenerateUrlQuirks() throws Exception {
    Time time = new MockTime(444);
    BrowserHunter browserHunter =
        new BrowserHunter(new CapturedBrowsers(new BrowserIdStrategy(time)), SlaveBrowser.TIMEOUT,
            new NullPathPrefix(), new TimeImpl());
    SlaveBrowser slaveBrowser = browserHunter.captureBrowser("name", "version", "os");
    BrowserInfo browserInfo = slaveBrowser.getBrowserInfo();

    assertEquals("name", browserInfo.getName());
    assertEquals("version", browserInfo.getVersion());
    assertEquals("os", browserInfo.getOs());
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.