forked from testcontainers/testcontainers-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSeleniumStartTest.java
More file actions
34 lines (29 loc) · 1.05 KB
/
SeleniumStartTest.java
File metadata and controls
34 lines (29 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
package org.testcontainers.junit;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;
import org.openqa.selenium.chrome.ChromeOptions;
import org.testcontainers.containers.BrowserWebDriverContainer;
import org.testcontainers.utility.DockerImageName;
/**
* Simple test to check that readiness detection works correctly across major versions of the containers.
*/
@RunWith(Parameterized.class)
public class SeleniumStartTest {
@Parameterized.Parameters(name = "tag: {0}")
public static String[] data() {
return new String[]{"4.0.0", "3.4.0", "2.53.0", "2.45.0"};
}
@Parameterized.Parameter()
public String tag;
@Test
public void testAdditionalStartupString() {
final DockerImageName imageName = DockerImageName
.parse("selenium/standalone-chrome")
.withTag(tag);
try (BrowserWebDriverContainer<?> chrome = new BrowserWebDriverContainer<>(imageName)
.withCapabilities(new ChromeOptions())) {
chrome.start();
}
}
}