Skip to content

Commit

Permalink
Example for headless chrome
Browse files Browse the repository at this point in the history
This example shows how to run jasmine tests in headless chrome.
  • Loading branch information
paulpach committed Jul 31, 2017
1 parent dc3ef56 commit b16342f
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions src/site/markdown/webdriver-customization.md.vm
Expand Up @@ -138,3 +138,38 @@ Configuring PhantomJSDriver with custom binary path and caching settings:
</configuration>
</plugin>
```

Configure Chrome Driver for running chrome in headless mode

```xml
<plugin>
<groupId>${project.groupId}</groupId>
<artifactId>${project.artifactId}</artifactId>
<version>${currentStableVersion}<version>
<executions>
<execution>
<goals>
<goal>test</goal>
</goals>
</execution>
</executions>
<configuration>
<webDriverClassName>org.openqa.selenium.chrome.ChromeDriver</webDriverClassName>
<webDriverCapabilities>
<capability>
<name>browserName</name>
<value>chrome</value>
</capability>
<capability>
<name>chromeOptions</name>
<value implementation="org.openqa.selenium.chrome.ChromeOptions" >
<args>
<value>--headless</value>
<value>--disable-gpu</value>
</args>
</value>
</capability>
</webDriverCapabilities>
</configuration>
</plugin>
```

0 comments on commit b16342f

Please sign in to comment.