shahdhruvenn Posted November 29, 2012 Share Posted November 29, 2012 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. Link to comment Share on other sites More sharing options...
Developers Jos Posted November 29, 2012 Developers Share Posted November 29, 2012 Please read our forum rules, specifically the point about automating logins.Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Recommended Posts