Sha256: 005c2fe2caaeb537f6275930d00a70e97bff81439f6291e1e2654e4b21efa26b

Contents?: true

Size: 592 Bytes

Versions: 20

Compression:

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

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

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
page-object-0.9.4 features/step_definitions/link_steps.rb
page-object-0.9.3 features/step_definitions/link_steps.rb
page-object-0.9.2 features/step_definitions/link_steps.rb
page-object-0.9.1 features/step_definitions/link_steps.rb
page-object-0.9.0 features/step_definitions/link_steps.rb
page-object-0.8.10 features/step_definitions/link_steps.rb
page-object-0.8.9 features/step_definitions/link_steps.rb
page-object-0.8.8 features/step_definitions/link_steps.rb
page-object-0.8.7 features/step_definitions/link_steps.rb
page-object-0.8.6.1 features/step_definitions/link_steps.rb
page-object-0.8.6 features/step_definitions/link_steps.rb
page-object-0.8.5 features/step_definitions/link_steps.rb
page-object-0.8.4 features/step_definitions/link_steps.rb
page-object-0.8.3 features/step_definitions/link_steps.rb
page-object-0.8.2 features/step_definitions/link_steps.rb
page-object-0.8.1 features/step_definitions/link_steps.rb
page-object-0.8 features/step_definitions/link_steps.rb
page-object-0.7.6 features/step_definitions/link_steps.rb
page-object-0.7.5.1 features/step_definitions/link_steps.rb
page-object-0.7.5 features/step_definitions/link_steps.rb