Skip to content
Create a gist now

Instantly share code, notes, and snippets.

Selenium WebDriver for Ruby Bindings quick script template; based on @jarib's SWD template
require 'rubygems'
require 'selenium-webdriver'
browser = Selenium::WebDriver.for :firefox # replace :firefox with the browser you're having trouble with
begin
browser.get # <= Add your url here
# your code here
ensure
browser.quit
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.