We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 97f705f commit a03f9c9Copy full SHA for a03f9c9
spring-boot-example/src/test/java/de/rieckpil/blog/selenium/SeleniumBasicTest.java
@@ -17,14 +17,14 @@
17
import org.openqa.selenium.WebDriver;
18
import org.openqa.selenium.WebElement;
19
import org.openqa.selenium.chrome.ChromeDriver;
20
+import org.openqa.selenium.chrome.ChromeOptions;
21
import org.openqa.selenium.support.ui.ExpectedConditions;
22
import org.openqa.selenium.support.ui.WebDriverWait;
23
import org.springframework.boot.test.context.SpringBootTest;
24
import org.springframework.boot.test.web.server.LocalServerPort;
25
26
import static org.junit.jupiter.api.Assertions.assertEquals;
27
-@Disabled
28
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
29
public class SeleniumBasicTest {
30
@@ -35,7 +35,10 @@ public class SeleniumBasicTest {
35
36
@BeforeEach
37
void setUp() {
38
- driver = new ChromeDriver();
+ driver = new ChromeDriver(new ChromeOptions()
39
+ .addArguments("--headless")
40
+ .addArguments("--no-sandbox")
41
+ .addArguments("--disable-dev-shm-usage"));
42
}
43
44
@Test
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments