Amit,
This is the method that works for me:
***************************************************************************
require 'watir/ie'
require 'watir/WindowHelper'
require 'test/unit'
require 'win32ole'
require 'watir\contrib\enabled_popup'
# open a browser
$ie = Watir::IE.new
puts " Step 1: go to the YourUrlt"
$ie.goto YourUrl.com
# Use the click_no_wait method immediately proceeding the popup.
# Below is an example
$ie.frame(:index, 3).frame(:index, 2).link(:text,
'Access').click_no_wait
puts " Step 2: handle authentication/login popup using 'AutoIt' "
# On one of my slower PC, the sleeps were needed to make this work.
# You may or may not need them
Watir.autoit.WinWait('Connect to YourPopupName')
Watir.autoit.Send('YourUsername')
sleep 2
Watir.autoit.Send('{TAB}')
sleep 1
Watir.autoit.Send('YourPassword')
sleep 1
Watir.autoit.Send('{ENTER}')
sleep 3
$ie.close
**************************************************************************
Darryl (gem dandy) Brown
On Jan 14, 2:02 pm, [email protected] wrote:
> Is there any way through which i can handle the Authentication popups?
> The Solution mentioned at the following link doesn't seem to work for
> me:http://wiki.openqa.org/display/WTR/Basic+Authentication
>
> Thanks in Advance.
>
> Regards,
> Amit
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Watir General" group.
To post to this group, send email to [email protected]
Before posting, please read the following guidelines:
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/watir-general
-~----------~----~----~----~------~----~------~--~---