Sha256: 50745eebfb28bb41cbce0a9b489d7f504dc8f83caa560fff46d6bbcea1783f5c

Contents?: true

Size: 301 Bytes

Versions: 13

Compression:

Stored size: 301 Bytes

Contents

class GoogleSearchPage < PageModels::Base
  def url
    "http://www.google.com.au/"
  end
  
  def verify!
    should have_content "About Google"
    should_not have_content "More search tools"
  end
  
  def search_for(query)
    fill_in "q", :with => query
    click_button "Google Search"
  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_search_page.rb
pagemodels-0.2.2 examples/rspec_and_capybara/spec/pagemodels/google_search_page.rb
pagemodels-0.2.1 examples/rspec_and_capybara/spec/pagemodels/google_search_page.rb
pagemodels-0.2.0 examples/rspec_and_capybara/spec/pagemodels/google_search_page.rb
pagemodels-0.1.8 examples/rspec_and_capybara/spec/pagemodels/google_search_page.rb
pagemodels-0.1.7 examples/rspec_and_capybara/spec/pagemodels/google_search_page.rb
pagemodels-0.1.6 examples/rspec_and_capybara/spec/pagemodels/google_search_page.rb
pagemodels-0.1.5 examples/rspec_and_capybara/spec/pagemodels/google_search_page.rb
pagemodels-0.1.4 examples/rspec_and_capybara/spec/pagemodels/google_search_page.rb
pagemodels-0.1.3 examples/rspec_and_capybara/spec/pagemodels/google_search_page.rb
pagemodels-0.1.2 examples/rspec_and_capybara/spec/pagemodels/google_search_page.rb
pagemodels-0.1.1 examples/rspec_and_capybara/spec/pagemodels/google_search_page.rb
pagemodels-0.1.0 examples/rspec_and_capybara/spec/pagemodels/google_search_page.rb