feature 16229

This commit is contained in:
SbloodyS 2024-06-29 19:21:03 +08:00
parent be0f18b2c5
commit 42827bcca5
2 changed files with 7 additions and 3 deletions

View File

@ -97,8 +97,11 @@ final class DolphinSchedulerExtension implements BeforeAllCallback, AfterAllCall
browser.withAccessToHost(true);
}
browser.start();
driver = new RemoteWebDriver(browser.getSeleniumAddress(), new ChromeOptions());
ChromeOptions chromeOptions = new ChromeOptions();
chromeOptions.addArguments("--allow-running-insecure-content");
chromeOptions.addArguments(String.format("--unsafely-treat-insecure-origin-as-secure=http://%s:%s",
address.getHost(), address.getPort()));
driver = new RemoteWebDriver(browser.getSeleniumAddress(), chromeOptions);
driver.manage().timeouts()
.implicitlyWait(Duration.ofSeconds(10))

View File

@ -43,6 +43,7 @@
<slf4j-api.version>1.7.36</slf4j-api.version>
<log4j-slf4j-impl.version>2.17.2</log4j-slf4j-impl.version>
<guava.version>31.0.1-jre</guava.version>
<maven-surefire-plugin.version>2.22.2</maven-surefire-plugin.version>
</properties>
<dependencies>
@ -131,7 +132,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.22.2</version>
<version>${maven-surefire-plugin.version}</version>
</plugin>
</plugins>
</build>