|
|
@ -139,14 +139,16 @@ final class DolphinSchedulerExtension implements BeforeAllCallback, AfterAllCall |
|
|
|
.withCapabilities(new ChromeOptions()) |
|
|
|
.withCapabilities(new ChromeOptions()) |
|
|
|
.withCreateContainerCmdModifier(cmd -> cmd.withUser("root")) |
|
|
|
.withCreateContainerCmdModifier(cmd -> cmd.withUser("root")) |
|
|
|
.withFileSystemBind(Constants.HOST_CHROME_DOWNLOAD_PATH.toFile().getAbsolutePath(), |
|
|
|
.withFileSystemBind(Constants.HOST_CHROME_DOWNLOAD_PATH.toFile().getAbsolutePath(), |
|
|
|
Constants.SELENIUM_CONTAINER_CHROME_DOWNLOAD_PATH); |
|
|
|
Constants.SELENIUM_CONTAINER_CHROME_DOWNLOAD_PATH) |
|
|
|
|
|
|
|
.withStartupTimeout(Duration.ofSeconds(120)); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
browser = new BrowserWebDriverContainer<>() |
|
|
|
browser = new BrowserWebDriverContainer<>() |
|
|
|
.withCapabilities(new ChromeOptions()) |
|
|
|
.withCapabilities(new ChromeOptions()) |
|
|
|
.withCreateContainerCmdModifier(cmd -> cmd.withUser("root")) |
|
|
|
.withCreateContainerCmdModifier(cmd -> cmd.withUser("root")) |
|
|
|
.withFileSystemBind(Constants.HOST_CHROME_DOWNLOAD_PATH.toFile().getAbsolutePath(), |
|
|
|
.withFileSystemBind(Constants.HOST_CHROME_DOWNLOAD_PATH.toFile().getAbsolutePath(), |
|
|
|
Constants.SELENIUM_CONTAINER_CHROME_DOWNLOAD_PATH) |
|
|
|
Constants.SELENIUM_CONTAINER_CHROME_DOWNLOAD_PATH) |
|
|
|
.withRecordingMode(RECORD_ALL, record.toFile(), MP4); |
|
|
|
.withRecordingMode(RECORD_ALL, record.toFile(), MP4) |
|
|
|
|
|
|
|
.withStartupTimeout(Duration.ofSeconds(120)); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|