Sha256: 9cdd5793c840c54b1b49576ca4151cd09a1e66f717a4343f50ea028af29fb218

Contents?: true

Size: 837 Bytes

Versions: 5

Compression:

Stored size: 837 Bytes

Contents

When /^I click the button$/ do
  @page.button_id
end

When /^I click the button with type image$/ do
  @page.button_image_id
end

When /^I click the image button using src$/ do
  @page.button_image_src
end

When /^I click the image button using alt$/ do
  @page.button_image_alt
end

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

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

Then /^I should be able to click the button$/ do
  @page.send "button_#{@how}"
end

Then /^I should be able to click the real button$/ do
  @page.send "btn_#{@how}"
end

When /^I find a button while the script is executing$/ do
  @button = @page.button_element(:id => 'button_id')
end

Then /^I should be able to click the button element$/ do
  @button.click
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
page-object-0.6 features/step_definitions/button_steps.rb
page-object-0.5.5 features/step_definitions/button_steps.rb
page-object-0.5.4 features/step_definitions/button_steps.rb
page-object-0.5.3 features/step_definitions/button_steps.rb
page-object-0.5.2 features/step_definitions/button_steps.rb