Skip to content

Commit faa019f

Browse files
Updated yml with docker
1 parent e524cc6 commit faa019f

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/test/java/reporting/RootTest.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import com.aventstack.chaintest.service.ChainPluginService;
55
import org.openqa.selenium.WebDriver;
66
import org.openqa.selenium.chrome.ChromeDriver;
7+
import org.openqa.selenium.chrome.ChromeOptions;
78
import org.testng.ITestResult;
89
import org.testng.annotations.AfterMethod;
910
import org.testng.annotations.BeforeMethod;
@@ -16,7 +17,12 @@ public class RootTest {
1617

1718
@BeforeMethod
1819
public void setUp() {
19-
driver = new ChromeDriver();
20+
ChromeOptions options = new ChromeOptions();
21+
options.addArguments("--headless"); // Enable headless mode
22+
options.addArguments("--disable-gpu"); // Disable GPU to avoid rendering issues
23+
options.addArguments("--disable-extensions"); // Disable extensions for stability
24+
25+
driver = new ChromeDriver(options);
2026
driver.manage().timeouts().implicitlyWait(Duration.ofSeconds(5));
2127
driver.manage().timeouts().pageLoadTimeout(Duration.ofSeconds(5));
2228
driver.manage().window().maximize();

0 commit comments

Comments
 (0)