I\'m trying to use selenium for the first time in a rails 3 app. (I\'ve used it before with rails 2). I\'m in an rvm which of course has its own gemset.
I first r
We use this to enable normal requests in capybara, and allow selenium's callbacks everywhere, because they are fired after requests are finished.
# spec/spec_helper.rb
RSpec.configure do |config|
config.before(:all, type: :request) do
WebMock.allow_net_connect!
end
config.after(:all, type: :request) do
selenium_requests = %r{/((__.+__)|(hub/session.*))$}
WebMock.disable_net_connect! :allow => selenium_requests
end
end