-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Open
Labels
Description
Module
Selenium
Testcontainers version
1.21.0
Using the latest Testcontainers version?
Yes
Host OS
Windows
Host Arch
x64
Docker version
Client:
Cloud integration: v1.0.22
Version: 20.10.11
API version: 1.41
Go version: go1.16.10
Git commit: dea9396
Built: Thu Nov 18 00:42:51 2021
OS/Arch: windows/amd64
Context: default
Experimental: true
Server: Docker Engine - Community
Engine:
Version: 20.10.11
API version: 1.41 (minimum version 1.12)
Go version: go1.16.9
Git commit: 847da18
Built: Thu Nov 18 00:35:39 2021
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.4.12
GitCommit: 7b11cfaabd73bb80907dd23182b9347b4245eb5d
runc:
Version: 1.0.2
GitCommit: v1.0.2-0-g52b36a2
docker-init:
Version: 0.19.0
GitCommit: de40ad0What happened?
Starting Junit5 integration with selenium. BrowserWebDriverContainer with VncRecordingMode.RECORD_FAILING is not recording the videos. It record when i change recording mode to RECORD_ALL
@testcontainers
public class TC8110_TestContainer {
@Container
private static BrowserWebDriverContainer<?> browserContainer =
new BrowserWebDriverContainer<>()
.withCapabilities(new ChromeOptions())
.withEnv("DEBUG","true")
.withRecordingMode(BrowserWebDriverContainer.VncRecordingMode.RECORD_FAILING, SeleniumHelper.getRecordingFolder().toFile(), VncRecordingContainer.VncRecordingFormat.MP4);
@Test
public void testExample() {
WebDriver driver = browserContainer.getWebDriver();
driver.get("http://example.com");
// Add your assertions here
// assertEquals("Example Domain12", driver.getTitle());
Assertions.assertEquals("http://example.com", driver.getTitle());
// throw new IllegalStateException("hello test exception");
}
Relevant log output
Additional Information
No response