@@ -20,13 +20,16 require 'capybara/rails' | |||
|
20 | 20 | |
|
21 | 21 | Capybara.default_driver = :selenium |
|
22 | 22 | Capybara.register_driver :selenium do |app| |
|
23 |
# Use the following driver definition to test locally using Chrome |
|
|
23 | # Use the following driver definition to test locally using Chrome | |
|
24 | # (also requires chromedriver to be in PATH) | |
|
24 | 25 | # Capybara::Selenium::Driver.new(app, :browser => :chrome) |
|
25 | 26 | # Add :switches => %w[--lang=en] to force default browser locale to English |
|
26 | 27 | # Default for Selenium remote driver is to connect to local host on port 4444 |
|
27 | 28 | # This can be change using :url => 'http://localhost:9195' if necessary |
|
28 |
# PhantomJS 1.8 now directly supports Webdriver Wire API, |
|
|
29 | # Add :desired_capabilities => Selenium::WebDriver::Remote::Capabilities.internet_explorer) to run on Selenium Grid Hub with IE | |
|
29 | # PhantomJS 1.8 now directly supports Webdriver Wire API, | |
|
30 | # simply run it with `phantomjs --webdriver 4444` | |
|
31 | # Add :desired_capabilities => Selenium::WebDriver::Remote::Capabilities.internet_explorer) | |
|
32 | # to run on Selenium Grid Hub with IE | |
|
30 | 33 | Capybara::Selenium::Driver.new(app, :browser => :remote) |
|
31 | 34 | end |
|
32 | 35 |
General Comments 0
You need to be logged in to leave comments.
Login now