Attempting to figure out where I would do this.I am looking at the clj-webdriver.core (line 188). I think this is where I might insert ChromeOptions. I am actually confused as to where the .newInstance method is coming from, as I don't see that in the API spec for ChromeDriver. Is this the right track, or is there an easier way.
--
You received this message because you are subscribed to the Google Groups "clj-webdriver" group.
To unsubscribe from this group and stop receiving emails from it, send an email to clj-webdrive...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
(defn new-webdriver* | |
"Return a Selenium-WebDriver WebDriver instance, optionally configured to leverage a custom FirefoxProfile." | |
([browser-spec] | |
(let [{:keys [browser profile] :or {browser :firefox | |
profile nil}} browser-spec] | |
(if-not profile | |
(.newInstance (webdriver-drivers (keyword browser))) | |
(FirefoxDriver. profile))))) |
--