Skip to content

Commit

Permalink
JariBakken: Use net-http-persistent for the IE driver test runs, if a…
Browse files Browse the repository at this point in the history
…vailable.

r14638
  • Loading branch information
jarib committed Nov 9, 2011
1 parent 1f54e27 commit 5cc1cef
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,8 @@ def create_driver
create_firefox_driver
when :chrome
create_chrome_driver
when :ie
create_ie_driver
else
WebDriver::Driver.for driver
end
Expand Down Expand Up @@ -180,6 +182,11 @@ def create_chrome_driver
:http_client => keep_alive_client || http_client
end

def create_ie_driver
WebDriver::Driver.for :ie,
:http_client => keep_alive_client || http_client
end

def keep_alive_client
require 'selenium/webdriver/remote/http/persistent'
STDERR.puts "INFO: using net-http-persistent"
Expand Down

0 comments on commit 5cc1cef

Please sign in to comment.