Sha256: 9f2e0c879675224cbae04f79c009e307e237757b13473affb9d5a762b3129444

Contents?: true

Size: 743 Bytes

Versions: 16

Compression:

Stored size: 743 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

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
page-object-0.6 features/step_definitions/check_box_steps.rb
page-object-0.5.5 features/step_definitions/check_box_steps.rb
page-object-0.5.4 features/step_definitions/check_box_steps.rb
page-object-0.5.3 features/step_definitions/check_box_steps.rb
page-object-0.5.2 features/step_definitions/check_box_steps.rb
page-object-0.5.1 features/step_definitions/check_box_steps.rb
page-object-0.5.0 features/step_definitions/check_box_steps.rb
page-object-0.4.4 features/step_definitions/check_box_steps.rb
page-object-0.4.3 features/step_definitions/check_box_steps.rb
page-object-0.4.2 features/step_definitions/check_box_steps.rb
page-object-0.4.1 features/step_definitions/check_box_steps.rb
page-object-0.4.0 features/step_definitions/check_box_steps.rb
page-object-0.3.2 features/step_definitions/check_box_steps.rb
page-object-0.3.1 features/step_definitions/check_box_steps.rb
page-object-0.3.0 features/step_definitions/check_box_steps.rb
page-object-0.2.5 features/step_definitions/check_box_steps.rb