Last active
December 19, 2015 18:49
-
-
Save bbbco/6001743 to your computer and use it in GitHub Desktop.
Selenium WebDriver for Ruby Bindings quick script template; based on @jarib's SWD template
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 '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