mirror of
https://github.com/teamcapybara/capybara.git
synced 2022-11-09 12:08:07 -05:00
Apparently focus manager is not enabled by default, /cc @TimMoore
Guess I was wrong about this one, clearly still seeing failures with the latest selenium-webdriver, which are resolved by this. Guess I was wrong. Seems like some things are now fixed, but not everything. Very strange.
This commit is contained in:
parent
b5572c948f
commit
57e15d3f98
1 changed files with 8 additions and 1 deletions
|
@ -1,7 +1,14 @@
|
||||||
require 'spec_helper'
|
require 'spec_helper'
|
||||||
|
require "selenium-webdriver"
|
||||||
|
|
||||||
|
Capybara.register_driver :selenium_focus do |app|
|
||||||
|
profile = Selenium::WebDriver::Firefox::Profile.new
|
||||||
|
profile["focusmanager.testmode"] = true
|
||||||
|
Capybara::Selenium::Driver.new(app, browser: :firefox, profile: profile)
|
||||||
|
end
|
||||||
|
|
||||||
module TestSessions
|
module TestSessions
|
||||||
Selenium = Capybara::Session.new(:selenium, TestApp)
|
Selenium = Capybara::Session.new(:selenium_focus, TestApp)
|
||||||
end
|
end
|
||||||
|
|
||||||
Capybara::SpecHelper.run_specs TestSessions::Selenium, "selenium", :skip => [
|
Capybara::SpecHelper.run_specs TestSessions::Selenium, "selenium", :skip => [
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue