Skip to content

Commit

Permalink
run chrome headless
Browse files Browse the repository at this point in the history
  • Loading branch information
JanTrnavsky committed Jul 12, 2023
1 parent c7834f9 commit 15b173a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
name: Java CI with Maven
name: Run Selenium tests on PR
on: pull_request
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: nanasess/setup-chromedriver@v2

- name: Set up JDK
uses: actions/setup-java@v3
with:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ private static WebDriver createChromeDriver() {
try {
ChromeOptions options = new ChromeOptions();
options.addArguments("--remote-allow-origins=*");
options.addArguments("--headless=new");
return WebDriverManager.chromedriver().capabilities(options).create();
} catch (WebDriverManagerException exception1) {
return createEdgeDriver();
Expand Down

0 comments on commit 15b173a

Please sign in to comment.