Plugin to run Selenium with firefox using the Hitch testing framework.
HitchSelenium is a plugin for the Hitch testing framework that wraps selenium and starts firefox, optionally with XVFB so the browser window does not appear.
Install like so:
$ hitch install hitchselenium
# Service definition in engine's setUp: self.services['Firefox'] = hitchselenium.SeleniumService( xvfb=False # Optional (default: False) ) # N.B. if xvfb is installed and xvfb is set to True, firefox will run hidden. # Open page and type something into text box with id id_description: self.driver = self.services['Firefox'].driver self.driver.get(self.url) self.driver.find_element_by_id("id_description").send_keys("type something...")
See this service in action at the DjangoRemindMe project.
Download and install specified versions of firefox/chromium in .hitchpkg directory for all versions.