Sha256: c7c1ee129a8de0a36600a4584f9ffdeb0fb44b41c4c3d6956fd6ed6c58706643

Contents?: true

Size: 832 Bytes

Versions: 42

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

42 entries across 42 versions & 2 rubygems

Version Path
meeane-page-object-0.1.11 features/step_definitions/check_box_steps.rb
page-object-1.0.2 features/step_definitions/check_box_steps.rb
page-object-1.0.1 features/step_definitions/check_box_steps.rb
page-object-1.0 features/step_definitions/check_box_steps.rb
page-object-0.9.8 features/step_definitions/check_box_steps.rb
page-object-0.9.7 features/step_definitions/check_box_steps.rb
page-object-0.9.6 features/step_definitions/check_box_steps.rb
page-object-0.9.5 features/step_definitions/check_box_steps.rb
page-object-0.9.4 features/step_definitions/check_box_steps.rb
page-object-0.9.3 features/step_definitions/check_box_steps.rb
page-object-0.9.2 features/step_definitions/check_box_steps.rb
page-object-0.9.1 features/step_definitions/check_box_steps.rb
page-object-0.9.0 features/step_definitions/check_box_steps.rb
page-object-0.8.10 features/step_definitions/check_box_steps.rb
page-object-0.8.9 features/step_definitions/check_box_steps.rb
page-object-0.8.8 features/step_definitions/check_box_steps.rb
page-object-0.8.7 features/step_definitions/check_box_steps.rb
page-object-0.8.6.1 features/step_definitions/check_box_steps.rb
page-object-0.8.6 features/step_definitions/check_box_steps.rb
page-object-0.8.5 features/step_definitions/check_box_steps.rb