Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Selenium server test

  • Loading branch information...
commit 1f4af22ca6d687d3cf4b0431f64904b91c5e5849 1 parent 721ce5e
@ludo authored
Showing with 14 additions and 4 deletions.
  1. +14 −4 features/support/env.rb
View
18 features/support/env.rb
@@ -1,6 +1,6 @@
# IMPORTANT: This file is generated by cucumber-rails - edit at your own peril.
-# It is recommended to regenerate this file in the future when you upgrade to a
-# newer version of cucumber-rails. Consider adding your own code to a new file
+# It is recommended to regenerate this file in the future when you upgrade to a
+# newer version of cucumber-rails. Consider adding your own code to a new file
# instead of editing this one. Cucumber will automatically load all features/**/*.rb
# files.
@@ -12,9 +12,19 @@
# steps to use the XPath syntax.
Capybara.default_selector = :css
+Capybara.app_host = "http://192.168.1.37:3000"
+Capybara.default_driver = :selenium
+Capybara.register_driver :selenium do |app|
+ Capybara::Driver::Selenium.new(app,
+ :browser => :remote,
+ :url => "http://ci2.amsterdam.viaviela.local:4444/wd/hub"
+ #:desired_capabilities => :firefox)
+ )
+end
+
# By default, any exception happening in your Rails application will bubble up
-# to Cucumber so that your scenario will fail. This is a different from how
-# your application behaves in the production environment, where an error page will
+# to Cucumber so that your scenario will fail. This is a different from how
+# your application behaves in the production environment, where an error page will
# be rendered instead.
#
# Sometimes we want to override this default behaviour and allow Rails to rescue
Please sign in to comment.
Something went wrong with that request. Please try again.