[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

autoit::watir outlook web access login pop up

Devabrat Kumar

6/9/2008 12:15:00 PM

Hi

I have a script to login into outlook Web access

When I run this

def logon(title,name = 'Connect to 192.2.24.88',password = 'john doe')
@autoit.WinWait title, ""
@autoit.Send "devabrat"
@autoit.Send "{TAB}"
@autoit.Send "wow"
@autoit.Send "{ENTER}"
end

it looks for windows login box which comes as a pop up box (on Internet
Explorer) having title,
'Connect to 192.2.24.88'

it then writes onto first field with text "devabrat" corresponding to
line

@autoit.Send "devabrat" then the script presses tab and then writes
"wow"
corresponding to
@autoit.Send "wow"

Th problem:

Somtimes it happens that when you type outlook webaccess IP at address
bar(after a wrong login) the username field is already filled with the
previously attempted username so that the cursor starts from
password field. The cursor should start from username field. If it
starts from the password filed then the script takes it as first filed
and wrongly writes intended username in password field then presses tab
and attempts to write password at a element on which u cannot write.

Hence login process fails.

If you are are familiar with outlook web access then you must be knowing
that when you write outlook web access IP or address on the address bar
and press enter then a box comes for credentials. Now this box is not
not on HTML page so I cannot find the name of element (textfield) and
supply credentials.

Is there any solution to my above problem?

Can we identify the name of TextField elements in the above box and
press OK button????Remember it appears as a separate box so you cannot
view source and know the name of the element.

Also please suggest a way to access elements by name on such a box.

Thanks
--devabrat
Devabrat.Kumar@citrix.com
--
Posted via http://www.ruby-....