Sha256: 3d858e9607e63c5d064668462ceb28c943ce96e730bfd01ce6953485c23f652a

Contents?: true

Size: 510 Bytes

Versions: 13

Compression:

Stored size: 510 Bytes

Contents

class GoogleResultsPage < PageModels::Base
  def initialize(query)
    @query = query
  end
  
  def verify!
    should have_content @query
    should have_content "More search tools"
  end
  
  def verify_more_than_one_page_of_results
    all("table#nav a.fl").should have_at_least(2).things
  end
  
  def verify_special_results_option(option)
    within("#leftnav") do
      should have_content option
    end
  end
  
  def verify_top_result(url)
    find("#search cite:first").text.should == url
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
pagemodels-0.2.3 examples/rspec_and_capybara/spec/pagemodels/google_results_page.rb
pagemodels-0.2.2 examples/rspec_and_capybara/spec/pagemodels/google_results_page.rb
pagemodels-0.2.1 examples/rspec_and_capybara/spec/pagemodels/google_results_page.rb
pagemodels-0.2.0 examples/rspec_and_capybara/spec/pagemodels/google_results_page.rb
pagemodels-0.1.8 examples/rspec_and_capybara/spec/pagemodels/google_results_page.rb
pagemodels-0.1.7 examples/rspec_and_capybara/spec/pagemodels/google_results_page.rb
pagemodels-0.1.6 examples/rspec_and_capybara/spec/pagemodels/google_results_page.rb
pagemodels-0.1.5 examples/rspec_and_capybara/spec/pagemodels/google_results_page.rb
pagemodels-0.1.4 examples/rspec_and_capybara/spec/pagemodels/google_results_page.rb
pagemodels-0.1.3 examples/rspec_and_capybara/spec/pagemodels/google_results_page.rb
pagemodels-0.1.2 examples/rspec_and_capybara/spec/pagemodels/google_results_page.rb
pagemodels-0.1.1 examples/rspec_and_capybara/spec/pagemodels/google_results_page.rb
pagemodels-0.1.0 examples/rspec_and_capybara/spec/pagemodels/google_results_page.rb