You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When we try to use the capybara select method to select an option in a dropdown, it blows up. We can use the Celerity API the select the option without a problem.
From some digging around it looks like Nokogiri doesn't understand an xpath returned by celerity.
Here's a failing spec using a publicly available page:
require'capybara'require'capybara/dsl'require'capybara/celerity'Capybara.configuredo |config|
config.run_server=false# disabling javascript exceptions until htmlunit is more stablebrowser_options={:browser=>:ff3,:viewer=>false,:log_level=>:severe,:javascript_exceptions=>false,:status_code_exceptions=>false,:css=>true,:resynchronize=>true,:secure_ssl=>false,:refresh_handler=>:waiting}config.register_driver:celeritydo |app|
# config::Driver::Celerity.new(app, browser_options)config::Driver::Celerity.new(app)endconfig.default_driver=:celerityconfig.default_wait_time=30enddescribe"Orbitz hotel page"doincludeCapybara::DSLit"should search for a hotel"dovisit"http://www.orbitz.com"choose"htlChoice"fill_in"htlTarget",:with=>"Orlando"page.shouldhave_select("htlRooms")page.shouldhave_select("htlRooms",:options=>['1','2'])select"1",:from=>"htlRooms"endend
When we try to use the capybara select method to select an option in a dropdown, it blows up. We can use the Celerity API the select the option without a problem.
Environment:
jruby-1.6.5
capybara (1.0.0)
capybara-celerity (0.0.1)
nokogiri (1.5.0 java)
From some digging around it looks like Nokogiri doesn't understand an xpath returned by celerity.
Here's a failing spec using a publicly available page:
The text was updated successfully, but these errors were encountered: