features/step_definations/checkbox_steps.rb in druid-ts-0.0.1 vs features/step_definations/checkbox_steps.rb in druid-ts-1.1.0
- old
+ new
@@ -21,11 +21,15 @@
Then(/^I should be able to check the check box$/) do
@page.send "check_cb_#{@how}".to_sym
end
When(/^I retrieve a check box element$/) do
- @element = @page.cb_id_checkbox
+ @element = @page.cb_id_element
end
When(/^I search for the check box by "(.*?)" and "(.*?)"$/) do |param1, param2|
@how = "#{param1}_#{param2}"
+end
+
+When(/^I select the first check box while the script is executing$/) do
+ @page.checkbox_element(:id => "cb_id").check
end