Sign in to follow this  
Followers 0
shahdhruvenn

Handling Basic Authentication Dialogs - Problems

2 posts in this topic

Hi, I am new to autoIt world.

I am using selenium in which I need to automate the username and password dialog, I am successfully done for Firefox, but It is not working for Internet Explorer and Chrome.

For trying out small steps I tried this :

WinWait("[CLASS:#32770]")
$handleUsername = ControlGetHandle("[CLASS:#32770]", "", "[CLASSNN:Edit1]")
ControlSetText("[CLASS:#32770]", "", $handleUsername, "lahusers")

but then for chrome event changing to appropriate class name i.e." Chrome_WidgetWin_1" and proper control name [CLASS:ViewsTextfieldEdit; INSTANCE:2] it is not working.

I also wanted to know how to find out something like: I have this control ID and window class if that is there please activate that window and highlight the control ?

I guess what we can do is use :

ControlGetHandle

if(Not Null ControlGetHandle)

winActivate(containingwindow)

controlfocus(<the control>)

I am not getting how to code it properly. can anyone please help. I would be glad.

Share this post


Link to post
Share on other sites



Guest
This topic is now closed to further replies.
Sign in to follow this  
Followers 0