From 09f9a96fbfcf4f5df32c4521d4ea1c8b76614b90 Mon Sep 17 00:00:00 2001 From: Chris Holt Date: Sat, 13 Aug 2016 10:02:18 -0500 Subject: [PATCH] Add chrome with options for #276 --- RELEASE_NOTES.md | 6 ++++++ src/canopy/AssemblyInfo.fs | 8 ++++---- src/canopy/canopy.fs | 1 + src/canopy/types.fs | 1 + 4 files changed, 12 insertions(+), 4 deletions(-) diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md index 58ec4c50..0c957ed5 100644 --- a/RELEASE_NOTES.md +++ b/RELEASE_NOTES.md @@ -263,3 +263,9 @@ Added better support for chromium [Issue #276](https://github.com/lefthandedgoat #### 0.9.58 - July 31 2016 Added ability to skip in the middle of a test [Issue #280](https://github.com/lefthandedgoat/canopy/issue/280) + +#### 0.9.59 - Aug 12 2016 +Added ability to position a browser in a specific location, thanks @navmed! [Issue #285](https://github.com/lefthandedgoat/canopy/issue/285) + +#### 0.9.60 - Aug 13 2016 +Added chromium with options support [Issue #276](https://github.com/lefthandedgoat/canopy/issue/276) \ No newline at end of file diff --git a/src/canopy/AssemblyInfo.fs b/src/canopy/AssemblyInfo.fs index 1e0d1a8a..05100d7a 100644 --- a/src/canopy/AssemblyInfo.fs +++ b/src/canopy/AssemblyInfo.fs @@ -4,10 +4,10 @@ open System.Reflection [] [] [] -[] -[] +[] +[] do () module internal AssemblyVersionInformation = - let [] Version = "0.9.58" - let [] InformationalVersion = "0.9.58" + let [] Version = "0.9.60" + let [] InformationalVersion = "0.9.60" diff --git a/src/canopy/canopy.fs b/src/canopy/canopy.fs index 787bc1da..b27bb183 100644 --- a/src/canopy/canopy.fs +++ b/src/canopy/canopy.fs @@ -807,6 +807,7 @@ let start b = let options = OpenQA.Selenium.Chrome.ChromeOptions() options.AddArgument("test-type") //https://code.google.com/p/chromedriver/issues/detail?id=799 new Chrome.ChromeDriver(chromiumDir, options) :> IWebDriver + | ChromiumWithOptions options -> new Chrome.ChromeDriver(chromiumDir, options) :> IWebDriver | Firefox -> new FirefoxDriver() :> IWebDriver | FirefoxWithProfile profile -> new FirefoxDriver(profile) :> IWebDriver | FirefoxWithPath path -> new FirefoxDriver(new Firefox.FirefoxBinary(path), Firefox.FirefoxProfile()) :> IWebDriver diff --git a/src/canopy/types.fs b/src/canopy/types.fs index 8dfa7c70..e2131723 100644 --- a/src/canopy/types.fs +++ b/src/canopy/types.fs @@ -55,6 +55,7 @@ type BrowserStartMode = | ChromeWithOptionsAndTimeSpan of Chrome.ChromeOptions * TimeSpan | ChromeWithUserAgent of string | Chromium + | ChromiumWithOptions of Chrome.ChromeOptions | Safari | PhantomJS | PhantomJSProxyNone