My Tech Notes
Friday, May 3, 2013
Capybara Check Select Options
To check Select options using Capybara
To choose the select option:
select('Morning', :from => 'Shift')
To check the value of the select options:
page.has_select?('Shift', :selected => 'Morning')
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment