Sha256: 05828ae25e6806287da23d0d561b10fee9eff81f056dbe9d7d35c9fbccf94017

Contents?: true

Size: 607 Bytes

Versions: 5

Compression:

Stored size: 607 Bytes

Contents

When /^I click the button$/ do
  @page.button_id
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.5.1 features/step_definitions/button_steps.rb
page-object-0.5.0 features/step_definitions/button_steps.rb
page-object-0.4.4 features/step_definitions/button_steps.rb
page-object-0.4.3 features/step_definitions/button_steps.rb
page-object-0.4.2 features/step_definitions/button_steps.rb