Skip to content

Instantly share code, notes, and snippets.

@tka
Created April 12, 2010 16:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tka/363732 to your computer and use it in GitHub Desktop.
Save tka/363732 to your computer and use it in GitHub Desktop.
@browser = Selenium::Client::Driver.new \
:host => "localhost",
:port => 4444,
:browser => "*firefox",
:url => "http://www.google.com",
:timeout_in_second => 60
@browser.start_new_browser_session
@browser.open "/"
@browser.type "q", "Ruby Tuesday #11"
@browser.click "btnG", :wait_for => :page
@browser.capture_entire_page_screenshot('/Users/tka/1.png','')
puts @browser.text?("Ruby Tuesday #11 |Registrano")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment