Skip to content

Instantly share code, notes, and snippets.

@firesofmay
Created March 12, 2013 06:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save firesofmay/5140851 to your computer and use it in GitHub Desktop.
Save firesofmay/5140851 to your computer and use it in GitHub Desktop.
(ns ff.core
(require [clj-webdriver.taxi :as taxi]
[clj-webdriver.firefox :as ff]))
(def path-firebug "ff-extensions/firebug@software.joehewitt.com.xpi")
(defn init-firefox-local-driver
"Initializes Firefox driver.
And sets a global implicit-wait"
[wait-timeout]
(taxi/set-driver! {:browser-name :firefox
:profile (doto (ff/new-profile)
(ff/set-preferences {"app.update.enabled" false})
(ff/set-preferences {"extensions.firebug.showFirstRunPage" false})
(ff/enable-extension path-firebug))})
(taxi/implicit-wait wait-timeout))
(init-firefox-local-driver 3000)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment