search for: elementnotfound

Displaying 3 results from an estimated 3 matches for "elementnotfound".

2010 Dec 16
12
Capybara + radio buttons
How do I select a radio button when both id and name are identical?: <input type="radio" name="BILFPB.bilPremieUppgifterFI.under24" tabindex="13" value="J24" checked="checked" id="forare">Ja <input type="radio" name="BILFPB.bilPremieUppgifterFI.under24" tabindex="14" value="N24"
2011 Jul 05
2
Using Capybara to select from a collection_select call (select tag)
...tep definition is When /^(?:|I )select "(.+)" from "(.+)"$/ do |value, field| select(value, :from => field) end For some reason, I keep getting the error: cannot select option, no select box with id, name, or label ''Organization'' found (Capybara::ElementNotFound) (eval):2:in `select'' … although my view is <label>Organization</label> <%= collection_select :restaurant, :organization_id, Organization.all, :id, :name, { :prompt => "[Select organization]" } %> Shouldn''t this work? The label is &...
2011 Oct 08
1
Rails view spec expectations/matchers
>From looking at the RSpec Rails documentation (https://www.relishapp.com/rspec/rspec-rails/docs/view-specs/view-spec) it seems like rendered is just a string and you can''t really do any assert_select type stuff out of the box. After Googling around, it seems that the RSpec authors decided that if you want that functionality, you should just use Capybara or some such... is that