public
Last active

Selenium WebDriver for Ruby Bindings quick script template; based on @jarib's SWD template

  • Download Gist
swd_template.rb
Ruby
1 2 3 4 5 6 7 8 9 10 11
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

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.