Skip to content

Commit eac6b43

Browse files
committed
removed commented code to run test in headless mode
1 parent c6c5e78 commit eac6b43

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/test/java/io/github/mfaisalkhatri/test/BaseTest.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,10 @@ public WebDriver getDriver () {
2020

2121
@BeforeClass
2222
public void setup () {
23-
//ChromeOptions chromeOptions = new ChromeOptions ();
24-
//chromeOptions.addArguments ("--headless=new", "--no-sandbox", "--window-size=1920,1080");
23+
ChromeOptions chromeOptions = new ChromeOptions ();
24+
chromeOptions.addArguments ("--headless=new", "--no-sandbox", "--window-size=1920,1080");
2525

26-
// this.driver = new ChromeDriver (chromeOptions);
27-
this.driver = new ChromeDriver ();
26+
this.driver = new ChromeDriver (chromeOptions);
2827
this.driver.manage ()
2928
.timeouts ()
3029
.implicitlyWait (Duration.ofSeconds (30));

0 commit comments

Comments
 (0)