Unable to login in authentication window

Hi

i am not able to close the java script popup windows using watir.

require ‘watir’
require ‘win32ole’

ie = Watir::IE.new
@user = ‘username’
@pass = ‘password’
@url = ‘internal site’
@login_title = "Connect to "
ie.goto(@url)

Watir.autoit.WinWait(‘Connect to ‘)
Watir.autoit.Send(@user)
Watir.autoit.Send(’{TAB}’)
Watir.autoit.Send(@pass)
Watir.autoit.Send(’{ENTER}’)

it opens the authentication window… but does not enters username and
password.

pls help

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs