Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Update new-firefox-driver fn with proper caching signature in additio…
Browse files Browse the repository at this point in the history
…n to profile
  • Loading branch information
semperos committed Nov 1, 2011
1 parent 60299e1 commit 5443ba3
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/clj_webdriver/firefox.clj
Expand Up @@ -3,14 +3,17 @@
(:import org.openqa.selenium.firefox.FirefoxProfile))

(defn new-firefox-driver
"Create new Driver given a browser type. If an additional profile object or string is passed in, Firefox will be started with the given profile instead of the default.
This is the preferred method for starting up a browser, as it leverages clj-webdriver-specific functionality not available with vanilla WebDriver instances. You can always access the underlying WebDriver instance with the :webdriver key of your Driver record."
([browser]
(init-driver (new-webdriver* browser)))
([browser profile]
(init-driver (new-webdriver* browser profile)))
([browser profile caching-strategy]
(init-driver (new-webdriver* browser profile) caching-strategy))
([browser profile caching-strategy cache-args]
(init-driver (new-webdriver* browser profile) caching-strategy cache-args)))
([browser profile cache-spec]
(init-driver (new-webdriver* browser profile) cache-spec))
([browser profile cache-spec cache-args]
(init-driver (new-webdriver* browser profile) cache-spec cache-args)))

(defn new-profile
"Create an instance of `FirefoxProfile`"
Expand Down

0 comments on commit 5443ba3

Please sign in to comment.