Skip to content

Commit

Permalink
Added phantomJSProxyNone to help with issue #94
Browse files Browse the repository at this point in the history
  • Loading branch information
lefthandedgoat committed Sep 2, 2013
1 parent 2284d4f commit ac0acbd
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions canopy/canopy.fs
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,13 @@ type BrowserStartMode =
| ChromeWithOptions of Chrome.ChromeOptions
| ChromeWithOptionsAndTimeSpan of Chrome.ChromeOptions * TimeSpan
| PhantomJS
| PhantomJSProxyNone

let firefox = Firefox
let ie = IE
let chrome = Chrome
let phantomJS = PhantomJS
let phantomJSProxyNone = PhantomJSProxyNone

let mutable browsers = []

Expand Down Expand Up @@ -547,6 +549,11 @@ let start b =
| PhantomJS ->
autoPinBrowserRightOnLaunch <- false
new OpenQA.Selenium.PhantomJS.PhantomJSDriver(phantomJSDir) :> IWebDriver
| PhantomJSProxyNone ->
autoPinBrowserRightOnLaunch <- false
let service = OpenQA.Selenium.PhantomJS.PhantomJSDriverService.CreateDefaultService(canopy.configuration.phantomJSDir)
service.ProxyType <- "none"
new OpenQA.Selenium.PhantomJS.PhantomJSDriver(service) :> IWebDriver

if autoPinBrowserRightOnLaunch = true then pin Right
browsers <- browsers @ [browser]
Expand Down

0 comments on commit ac0acbd

Please sign in to comment.