From 6a594f56e1786b06e24016ea01f30a2bf001c799 Mon Sep 17 00:00:00 2001 From: MJL33 <> Date: Wed, 1 Jun 2022 21:09:24 +0800 Subject: [PATCH 1/2] Bump Selenoid actions from v1 to v2 --- .github/workflows/maven.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index cda8362e..02bbddbc 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -35,7 +35,7 @@ jobs: # run: | # ls | xargs -I{} curl -v -X POST -H "Content-Type: application/json" -d @{} http://localhost:8080/__admin/mappings - name: Start selenoid - uses: Xotabu4/selenoid-github-action@v1 + uses: Xotabu4/selenoid-github-action@v2 - name: Cache local Maven repository uses: actions/cache@v2 with: From 8f1b981a2013189d03b2860d83170159a4bc686e Mon Sep 17 00:00:00 2001 From: MJL33 <> Date: Wed, 1 Jun 2022 21:48:10 +0800 Subject: [PATCH 2/2] Bump Selenoid actions from v1 to v2 --- .github/workflows/maven.yml | 4 ---- .../java/com/frameworkium/integration/CustomFirefoxImpl.java | 5 ++++- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 02bbddbc..5a44d788 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -30,10 +30,6 @@ jobs: uses: actions/setup-java@v1 with: java-version: ${{ matrix.java-version }} - # - name: Configure wiremock mappings - # working-directory: src/test/resources/mappings - # run: | - # ls | xargs -I{} curl -v -X POST -H "Content-Type: application/json" -d @{} http://localhost:8080/__admin/mappings - name: Start selenoid uses: Xotabu4/selenoid-github-action@v2 - name: Cache local Maven repository diff --git a/src/test/java/com/frameworkium/integration/CustomFirefoxImpl.java b/src/test/java/com/frameworkium/integration/CustomFirefoxImpl.java index 3894135f..7e989a99 100644 --- a/src/test/java/com/frameworkium/integration/CustomFirefoxImpl.java +++ b/src/test/java/com/frameworkium/integration/CustomFirefoxImpl.java @@ -1,5 +1,6 @@ package com.frameworkium.integration; +import com.frameworkium.core.common.properties.Property; import com.frameworkium.core.ui.driver.AbstractDriver; import org.openqa.selenium.Capabilities; import org.openqa.selenium.WebDriver; @@ -13,7 +14,9 @@ public class CustomFirefoxImpl extends AbstractDriver { @Override public Capabilities getCapabilities() { - return new FirefoxOptions(); + var firefoxOptions = new FirefoxOptions(); + firefoxOptions.setHeadless(Property.HEADLESS.getBoolean()); + return firefoxOptions; } @Override