Selenium
I was watching Harry Percival's video about test-driven web development[1] the other day. I wonder if there is a way to use Selenium within vagrant. Is it possible to do so without installing X and Firefox, using the browser on the host machine?
I found a project[2] but I don't know if it needs to install X, and how is it possible to combine it with GSWD VM (It uses a different box and the structure looks very different).
Could you point me in the right direction?
[1] http://pyvideo.org/video/1657/ [2] https://github.com/mhenwood/django-selenium-vagrant/
Answers
Try the headless mode with Firefox WebDriver:
http://www.seleniumtests.com/2012/04/headless-tests-with-firefox-webdriver.html
Here you'll find an example how to use it in a more pythonic way with PyVirtualDisplay
http://stackoverflow.com/a/8910326
I know that the guest can't modify the host. My question is, couldn't you run the Selenium tests from the host? You'd have to make a host-local VM, but the Selenium tests would then have access to your local Firefox, which can hit 127.0.0.1:8888, right?
Honestly, I can't. I haven't used Selenium beyond some minor playing. I don't see, though, why you wouldn't be able to run the Selenium tests on your host machine using your local Firefox.