Sha256: ff84f6bc572138b2b4ddcb25407b70844c043475037ead32b1034cbf88231a3e

Contents?: true

Size: 838 Bytes

Versions: 9

Compression:

Stored size: 838 Bytes

Contents

When(/^I select the link labeled "(.*?)"$/) do |text|
  @page.google_search_id_element
  @page.google_search_id
end

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

Then(/^I should be able to select the link$/) do
  @page.send "google_search_#{@how}_element".to_sym
  @page.send "google_search_#{@how}".to_sym
end

When(/^I retrieve a link element$/) do
  @element = @page.google_search_id_element
end

Then(/^I should know it exists$/) do
  expect(@element.exist?).to be true
end

Then(/^I should know it is visible$/) do
  expect(@element.visible?).to be true
end

When(/^I select a link labeled "(.*?)" and index "(.*?)"$/) do |label, index|
  @page.send "#{label.downcase}#{index}".to_sym
end

When(/^I select a link while the script is executing$/) do
  link = @page.link_element(:id => 'link_id')
  link.click
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
druid-ts-1.1.8 features/step_definations/link_steps.rb
druid-ts-1.1.7 features/step_definations/link_steps.rb
druid-ts-1.1.6 features/step_definations/link_steps.rb
druid-ts-1.1.5 features/step_definations/link_steps.rb
druid-ts-1.1.4 features/step_definations/link_steps.rb
druid-ts-1.1.3 features/step_definations/link_steps.rb
druid-ts-1.1.2 features/step_definations/link_steps.rb
druid-ts-1.1.1 features/step_definations/link_steps.rb
druid-ts-1.1.0 features/step_definations/link_steps.rb