Skip to content

Commit

Permalink
fix selenium specs/cukes (broken on my machine)
Browse files Browse the repository at this point in the history
At least on my machine, passing the profile directly to the Selenium::Driver resulted in an error.

According to teamcapybara/capybara#1710 (comment), the profile has to be passed as part of the capabilities
  • Loading branch information
ulferts committed Nov 29, 2016
1 parent ec2dfe3 commit dab0850
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion spec/support/capybara.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,11 @@

profile['browser.helperApps.neverAsk.saveToDisk'] = 'text/csv'

capabilities["firefox_profile"] = profile

Capybara::Selenium::Driver.new(
app,
browser: :firefox,
profile: profile,
http_client: client,
desired_capabilities: capabilities
)
Expand Down

0 comments on commit dab0850

Please sign in to comment.