Geb example which shows how to change the user agent while using PhantomJSDriver
Groovy Shell
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
codenarc
gradle
src
webdrivers
.gitignore
.travis.yml
LICENSE
README.md
build.gradle
gradlew
gradlew.bat
travis-build.sh

README.md

Build Status

Geb Webbot User Agent

This repository shows how to change the user agent while using PhantomJSDriver in combination with Geb.

The user agent for PhantomJSDriver is changed in src/test/GebConfig.groovy

./gradlew phantomJsTest 

Executes a spock test which probes that user agent change was succesful.