Created
June 27, 2014 06:51
-
-
Save prashanthrajagopal/e476d2c1126db83ebc7b to your computer and use it in GitHub Desktop.
A sample selenium RC client
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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