diff --git a/src/clj_webdriver/firefox.clj b/src/clj_webdriver/firefox.clj index 6089a1f..1a7be7f 100644 --- a/src/clj_webdriver/firefox.clj +++ b/src/clj_webdriver/firefox.clj @@ -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`"