Sha256: 3e06b572155fc73260118d06bca81e6ba2d3a77157960f84f35a59b86f0991a2

Contents?: true

Size: 924 Bytes

Versions: 48

Compression:

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

Then /^I should see that the button exists$/ do
  @page.button_id?.should == true
end

Version data entries

48 entries across 48 versions & 3 rubygems

Version Path
page-object-lds-0.0.14 features/step_definitions/button_steps.rb
page-object-lds-0.0.13 features/step_definitions/button_steps.rb
page-object-lds-0.0.12 features/step_definitions/button_steps.rb
page-object-lds-0.0.11 features/step_definitions/button_steps.rb
page-object-lds-0.0.1 features/step_definitions/button_steps.rb
page-object-1.0.3 features/step_definitions/button_steps.rb
meeane-page-object-0.1.11 features/step_definitions/button_steps.rb
page-object-1.0.2 features/step_definitions/button_steps.rb
page-object-1.0.1 features/step_definitions/button_steps.rb
page-object-1.0 features/step_definitions/button_steps.rb
page-object-0.9.8 features/step_definitions/button_steps.rb
page-object-0.9.7 features/step_definitions/button_steps.rb
page-object-0.9.6 features/step_definitions/button_steps.rb
page-object-0.9.5 features/step_definitions/button_steps.rb
page-object-0.9.4 features/step_definitions/button_steps.rb
page-object-0.9.3 features/step_definitions/button_steps.rb
page-object-0.9.2 features/step_definitions/button_steps.rb
page-object-0.9.1 features/step_definitions/button_steps.rb
page-object-0.9.0 features/step_definitions/button_steps.rb
page-object-0.8.10 features/step_definitions/button_steps.rb