From c272772f1f40f908e7f8006ecbe808cc8ed71e59 Mon Sep 17 00:00:00 2001 From: xunliu Date: Wed, 24 Jan 2024 15:34:10 +0800 Subject: [PATCH] headless --- .../integration/test/web/ui/utils/ChromeWebDriverProvider.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/integration-test/src/test/java/com/datastrato/gravitino/integration/test/web/ui/utils/ChromeWebDriverProvider.java b/integration-test/src/test/java/com/datastrato/gravitino/integration/test/web/ui/utils/ChromeWebDriverProvider.java index b764f1bde59..628ff94f26a 100644 --- a/integration-test/src/test/java/com/datastrato/gravitino/integration/test/web/ui/utils/ChromeWebDriverProvider.java +++ b/integration-test/src/test/java/com/datastrato/gravitino/integration/test/web/ui/utils/ChromeWebDriverProvider.java @@ -67,6 +67,9 @@ public WebDriver createWebDriver(String webDriverPath, String downloadPath) { ITUtils.joinPath(downLoadDir, chromeBinName, "Contents", "MacOS", "Chromium")); } else { chromeOptions.setBinary(ITUtils.joinPath(downLoadDir, chromeBinName)); + chromeOptions.addArguments("--headless"); + // chromeOptions.addArguments("--no-sandbox"); + // chromeOptions.addArguments("--disable-dev-shm-usage"); } return new ChromeDriver(chromeOptions);