public
Created

  • Download Gist
selenium-client.rb
Ruby
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
browser.open '/'
assert_equal 'Hosted Ruby/Rails metrics - Caliper', browser.title
assert browser.text?('Recently Generated Metrics')
browser.click "css=#projects a:contains('Projects')", :wait_for => :page
assert browser.text?('Browse Projects')
browser.click "css=#add-project a:contains('Add Project')", :wait_for => :page
assert browser.text?('Add Project')
browser.type 'repo','git://github.com/sinatra/sinatra.git'
browser.click "css=#submit-project", :wait_for => :page
assert browser.text?('sinatra/sinatra')
browser.wait_for_element "css=#hotspots-summary"
assert browser.text?('View full Hot Spots report')

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.