Sha256: 68c58816220109d855e4c035aae61c46db78a27e010427feaa7194868b6a4275

Contents?: true

Size: 510 Bytes

Versions: 16

Compression:

Stored size: 510 Bytes

Contents

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

When /^I search for the link by "([^\"]*)"$/ do |how|
  @how = how
end

Then /^I should be able to select the link$/ do
  @page.send "google_search_#{@how}".to_sym
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

16 entries across 16 versions & 1 rubygems

Version Path
page-object-0.6 features/step_definitions/link_steps.rb
page-object-0.5.5 features/step_definitions/link_steps.rb
page-object-0.5.4 features/step_definitions/link_steps.rb
page-object-0.5.3 features/step_definitions/link_steps.rb
page-object-0.5.2 features/step_definitions/link_steps.rb
page-object-0.5.1 features/step_definitions/link_steps.rb
page-object-0.5.0 features/step_definitions/link_steps.rb
page-object-0.4.4 features/step_definitions/link_steps.rb
page-object-0.4.3 features/step_definitions/link_steps.rb
page-object-0.4.2 features/step_definitions/link_steps.rb
page-object-0.4.1 features/step_definitions/link_steps.rb
page-object-0.4.0 features/step_definitions/link_steps.rb
page-object-0.3.2 features/step_definitions/link_steps.rb
page-object-0.3.1 features/step_definitions/link_steps.rb
page-object-0.3.0 features/step_definitions/link_steps.rb
page-object-0.2.5 features/step_definitions/link_steps.rb