
form.should have_selector('input').with_label('Foo')
Reported by tomo | July 7th, 2009 @ 08:50 PM
I want to do:
form.should have_selector('input').with_label('Foo')
instead of:
form.should have_selector('label[for=foo]', :content => 'Foo')
form.should have_selector('input#foo')
Top two commits at http://github.com/tomo/webrat/tree/with_label make this happen. A test is included in have_xpath_spec.rb.
No comments found
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
Ruby Acceptance Testing for Web applications.