Watir — Basic Authentication window Handling
October 28, 2009
Code:
require ‘rubygems’
require ‘firewatir’
include FireWatir
browser=Firefox.new
#(Use next line instead of –>browser.goto(“http://website.com”) and entered username , password)
browser.goto(“http://username:password@website.com”)
# (If the authentication window occurs any other pages then simply call that LINK URL with username,password like this.)