Skip to content

Instantly share code, notes, and snippets.

@gacha
Last active September 24, 2015 08:58
Show Gist options
  • Save gacha/723110 to your computer and use it in GitHub Desktop.
Save gacha/723110 to your computer and use it in GitHub Desktop.
With this you can run cucumber with selenium without seeing browser window. Add it to PATH and chmod +x
#!/bin/sh
if [ $(pidof -x Xvfb| wc -w) -eq 0 ]; then
Xvfb -ac -screen scrn 1024x768x24 :12.0 > /dev/null 2>&1 &
fi
export DISPLAY=:12.0
$@
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment