Sha256: d3cf14f84749ce504c824ae35d05cbdac7ade67586d25851fd02ca53db64fec2

Contents?: true

Size: 832 Bytes

Versions: 12

Compression:

Stored size: 832 Bytes

Contents

When /^I select the First check box$/ do
  @page.check_cb_id
end

Then /^the First check box should be selected$/ do
  @page.cb_id_checked?.should be true
end

When /^I unselect the First check box$/ do
  @page.uncheck_cb_id
end

Then /^the First check box should not be selected$/ do
  @page.cb_id_checked?.should be false
end

When /^I search for the check box by "([^\"]*)"$/ do |how|
  @how = how
end

When /^I search for the check box by "([^"]*)" and "([^"]*)"$/ do |param1, param2|
  @how = "#{param1}_#{param2}"
end

Then /^I should be able to check the check box$/ do
  @page.send "check_cb_#{@how}".to_sym
end

When /^I select the first check box while the script is executing$/ do
  @page.checkbox_element(:id => 'cb_id').check
end

Then /^I should see that the checkbox exists$/ do
  @page.button_id?.should == true
end

Version data entries

12 entries across 12 versions & 3 rubygems

Version Path
page-object-1.2.0 features/step_definitions/check_box_steps.rb
page-object-1.1.1 features/step_definitions/check_box_steps.rb
page_object-1.1.3 features/step_definitions/check_box_steps.rb
page_object-1.1.2 features/step_definitions/check_box_steps.rb
page_object-1.1.1 features/step_definitions/check_box_steps.rb
page-object-1.1.0 features/step_definitions/check_box_steps.rb
page-object-lds-0.0.14 features/step_definitions/check_box_steps.rb
page-object-lds-0.0.13 features/step_definitions/check_box_steps.rb
page-object-lds-0.0.12 features/step_definitions/check_box_steps.rb
page-object-lds-0.0.11 features/step_definitions/check_box_steps.rb
page-object-lds-0.0.1 features/step_definitions/check_box_steps.rb
page-object-1.0.3 features/step_definitions/check_box_steps.rb