Skip to content

Commit

Permalink
The browser pin feature seems to slow down PhantomJS
Browse files Browse the repository at this point in the history
This pinning seems to slow down PhantomJS by about 3-4 seconds per run. A headless browser doesn't need pinning anyhow.
  • Loading branch information
KevM committed Aug 30, 2013
1 parent 437a772 commit 3b0a040
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions canopy/canopy.fs
Original file line number Diff line number Diff line change
Expand Up @@ -545,6 +545,7 @@ let start b =
| FirefoxWithProfile profile ->
new OpenQA.Selenium.Firefox.FirefoxDriver(profile) :> IWebDriver
| PhantomJS ->
autoPinBrowserRightOnLaunch <- false
new OpenQA.Selenium.PhantomJS.PhantomJSDriver(phantomJSDir) :> IWebDriver

if autoPinBrowserRightOnLaunch = true then pin Right
Expand Down

0 comments on commit 3b0a040

Please sign in to comment.