Search in sources :

Example 1 with BrowserWebDriverContainer

use of org.testcontainers.containers.BrowserWebDriverContainer in project testcontainers-java by testcontainers.

the class FlakyContainerCreationTest method testCreationOfManyContainers.

@Test
@Ignore
public void testCreationOfManyContainers() {
    for (int i = 0; i < 50; i++) {
        BrowserWebDriverContainer container = new BrowserWebDriverContainer().withDesiredCapabilities(DesiredCapabilities.chrome()).withRecordingMode(BrowserWebDriverContainer.VncRecordingMode.RECORD_FAILING, new File("build"));
        container.start();
        RemoteWebDriver driver = container.getWebDriver();
        driver.get("http://www.google.com");
        container.stop();
    }
}
Also used : BrowserWebDriverContainer(org.testcontainers.containers.BrowserWebDriverContainer) RemoteWebDriver(org.openqa.selenium.remote.RemoteWebDriver) File(java.io.File) Ignore(org.junit.Ignore) Test(org.junit.Test)

Aggregations

File (java.io.File)1 Ignore (org.junit.Ignore)1 Test (org.junit.Test)1 RemoteWebDriver (org.openqa.selenium.remote.RemoteWebDriver)1 BrowserWebDriverContainer (org.testcontainers.containers.BrowserWebDriverContainer)1