Skip to content

Instantly share code, notes, and snippets.

@chauffi
Created June 21, 2012 20:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save chauffi/2968435 to your computer and use it in GitHub Desktop.
Save chauffi/2968435 to your computer and use it in GitHub Desktop.
Login script for RadPrimer
require 'rubygems'
require 'watir-webdriver'
browser = Watir::Browser.new
browser.goto('http://test.radprimer.com')
browser.text_field(:id, 'login_username').set('mobrian@amirsys.com')
browser.text_field(:id, 'login_password').set('password1')
browser.button(:id, 'login').click
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment