Skip to content

Commit

Permalink
Fix #153
Browse files Browse the repository at this point in the history
  • Loading branch information
lefthandedgoat committed May 29, 2014
1 parent c44737f commit 6fc9f9d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/canopy/canopy.fs
Original file line number Diff line number Diff line change
Expand Up @@ -638,7 +638,10 @@ let start b =
| IE -> new IE.InternetExplorerDriver(ieDir) :> IWebDriver
| IEWithOptions options -> new IE.InternetExplorerDriver(ieDir, options) :> IWebDriver
| IEWithOptionsAndTimeSpan(options, timeSpan) -> new IE.InternetExplorerDriver(ieDir, options, timeSpan) :> IWebDriver
| Chrome -> new Chrome.ChromeDriver(chromeDir) :> IWebDriver
| Chrome ->
let options = OpenQA.Selenium.Chrome.ChromeOptions()
options.AddArgument("test-type") //https://code.google.com/p/chromedriver/issues/detail?id=799
new Chrome.ChromeDriver(chromeDir, options) :> IWebDriver
| ChromeWithOptions options -> new Chrome.ChromeDriver(chromeDir, options) :> IWebDriver
| ChromeWithUserAgent userAgent -> chromeWithUserAgent userAgent
| ChromeWithOptionsAndTimeSpan(options, timeSpan) -> new Chrome.ChromeDriver(chromeDir, options, timeSpan) :> IWebDriver
Expand Down
5 changes: 4 additions & 1 deletion src/canopy/reporters.fs
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,10 @@ type LiveHtmlReporter(browser : BrowserStartMode, driverPath : string) =
| IE -> new OpenQA.Selenium.IE.InternetExplorerDriver(driverPath) :> IWebDriver
| IEWithOptions options ->new OpenQA.Selenium.IE.InternetExplorerDriver(driverPath, options) :> IWebDriver
| IEWithOptionsAndTimeSpan(options, timeSpan) -> new OpenQA.Selenium.IE.InternetExplorerDriver(driverPath, options, timeSpan) :> IWebDriver
| Chrome -> new OpenQA.Selenium.Chrome.ChromeDriver(driverPath) :> IWebDriver
| Chrome ->
let options = OpenQA.Selenium.Chrome.ChromeOptions()
options.AddArgument("test-type") //https://code.google.com/p/chromedriver/issues/detail?id=799
new OpenQA.Selenium.Chrome.ChromeDriver(driverPath, options) :> IWebDriver
| ChromeWithOptions options -> new OpenQA.Selenium.Chrome.ChromeDriver(driverPath, options) :> IWebDriver
| ChromeWithOptionsAndTimeSpan(options, timeSpan) -> new OpenQA.Selenium.Chrome.ChromeDriver(driverPath, options, timeSpan) :> IWebDriver
| Firefox -> new OpenQA.Selenium.Firefox.FirefoxDriver() :> IWebDriver
Expand Down

0 comments on commit 6fc9f9d

Please sign in to comment.