}
}
@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();
}