Sha256: 084042efc398fcd2735638ea5f4a657186dd4a274167b4dc98384055df213672

Contents?: true

Size: 521 Bytes

Versions: 6

Compression:

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

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

6 entries across 6 versions & 1 rubygems

Version Path
page-object-0.4.1 features/step_definitions/button_steps.rb
page-object-0.4.0 features/step_definitions/button_steps.rb
page-object-0.3.2 features/step_definitions/button_steps.rb
page-object-0.3.1 features/step_definitions/button_steps.rb
page-object-0.3.0 features/step_definitions/button_steps.rb
page-object-0.2.5 features/step_definitions/button_steps.rb