Sha256: abd34a9f6ba93700dbb7e5807997a25ac82e0b8a6c8c52a2edbf9b537a8e2370

Contents?: true

Size: 943 Bytes

Versions: 16

Compression:

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

When(/^I get the href for the link$/) do
  @href = @page.google_search_id_element.href
end

Then(/^I should know it was "(.*?)"$/) do |href|
  @href.should include href
end

When(/^I get the link using the href success$/) do
  @link = @page.link_element(:href => /succ.*html/)
end

Then(/^I should be able to click the link$/) do
  @link.click
end

Version data entries

16 entries across 16 versions & 4 rubygems

Version Path
page-object-1.2.0 features/step_definitions/link_steps.rb
page-object-1.1.1 features/step_definitions/link_steps.rb
page_object-1.1.3 features/step_definitions/link_steps.rb
page_object-1.1.2 features/step_definitions/link_steps.rb
page_object-1.1.1 features/step_definitions/link_steps.rb
page-object-1.1.0 features/step_definitions/link_steps.rb
page-object-lds-0.0.14 features/step_definitions/link_steps.rb
page-object-lds-0.0.13 features/step_definitions/link_steps.rb
page-object-lds-0.0.12 features/step_definitions/link_steps.rb
page-object-lds-0.0.11 features/step_definitions/link_steps.rb
page-object-lds-0.0.1 features/step_definitions/link_steps.rb
page-object-1.0.3 features/step_definitions/link_steps.rb
meeane-page-object-0.1.11 features/step_definitions/link_steps.rb
page-object-1.0.2 features/step_definitions/link_steps.rb
page-object-1.0.1 features/step_definitions/link_steps.rb
page-object-1.0 features/step_definitions/link_steps.rb