Package com.opera.core.systems.testing.drivers

Examples of com.opera.core.systems.testing.drivers.TestDriver


    }
  }

  @Test
  public void multipleInstances() {
    TestDriver a;
    TestDriver b;
    TestDriver c;

    try {
      a = new TestDriverBuilder().get();
      b = new TestDriverBuilder().get();
      c = new TestDriverBuilder().get();
    } catch (WebDriverException e) {
      // If immediately exited, then it doesn't support the flags
      if (e.getMessage().contains("Opera exited immediately")) {
        return;
      } else {
        throw e;
      }
    }

    a.navigate().to(pages.test);
    b.navigate().to(pages.javascript);
    c.navigate().to(pages.keys);

    assertThat(a.getCurrentUrl(), containsString("test.html"));
    assertThat(b.getCurrentUrl(), containsString("javascript.html"));
    assertThat(c.getCurrentUrl(), containsString("keys.html"));

    a.quit();
    b.quit();
    c.quit();
  }
View Full Code Here

TOP

Related Classes of com.opera.core.systems.testing.drivers.TestDriver

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.