Sha256: 38fc401567c827c53d49046b0aa5316061b9a2bd7200507878749460d848c853

Contents?: true

Size: 1.05 KB

Versions: 2

Compression:

Stored size: 1.05 KB

Contents

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

Then(/^I should be on the success page$/) do
  expect(@page.text).to include 'Success'
  expect(@page.title).to eql 'Success'
end

When(/^I locate the button by "(.*?)"$/) do |how|
  @how = how
end

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

When(/^I retrieve a button element$/) do
  @element = @page.send "button_id_element".to_sym
end

When(/^I search for the button by "(.*?)" and "(.*?)"$/) do |param1, param2|
  @how = "#{param1}_#{param2}"
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 be able to click the real button$/) do
  @page.send "btn_#{@how}".to_sym
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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
druid-ts-1.1.1 features/step_definations/button_steps.rb
druid-ts-1.1.0 features/step_definations/button_steps.rb