Skip to content

Instantly share code, notes, and snippets.

@prashanthrajagopal
Created June 27, 2014 06:51
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 prashanthrajagopal/e476d2c1126db83ebc7b to your computer and use it in GitHub Desktop.
Save prashanthrajagopal/e476d2c1126db83ebc7b to your computer and use it in GitHub Desktop.
A sample selenium RC client
require "selenium/client"
selenium = Selenium::Client::Driver.new("localhost", 4444, "*firefox", "http://www.google.com/", 60);
selenium.start
selenium.open "/"
selenium.type "q", "bowsersttack"
selenium.click "btnG"
selenium.wait_for_page_to_load "30000"
puts selenium.get_html_source
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment