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 3fdebc7 commit 6f59c05Copy full SHA for 6f59c05
src/test/java/io/github/mfaisalkhatri/test/BaseTest.java
@@ -4,6 +4,7 @@
4
5
import org.openqa.selenium.WebDriver;
6
import org.openqa.selenium.chrome.ChromeDriver;
7
+import org.openqa.selenium.chrome.ChromeOptions;
8
import org.testng.annotations.AfterClass;
9
import org.testng.annotations.BeforeClass;
10
@@ -13,6 +14,11 @@ public class BaseTest {
13
14
15
@BeforeClass
16
public void setup () {
17
+ ChromeOptions chromeOptions = new ChromeOptions ();
18
+ chromeOptions.addArguments ("--headless=new");
19
+ chromeOptions.addArguments ("disable-gpu");
20
+ chromeOptions.addArguments("--disable-dev-shm-usage");
21
+
22
this.driver = new ChromeDriver ();
23
this.driver.manage ()
24
.window ()
0 commit comments