jitu Posted March 3, 2008 Share Posted March 3, 2008 (edited) I am new to auto IT and I am able to create script that can Handle IE Pop-ups. I want to create similar script that can Click on YES or NO Buttons on FireFox Pop-up. Like Certificate error message, Confirmation box, Domain mismatch Error boxs I created for IE like ............ $MSIExplorer = "Microsoft Internet Explorer"; $IESecurityWarning = "Internet Explorer - Security Warning" $IEAlert = "Security Alert" $IESecurityInformation = "Security Information" while(True) ;;handle "Browser Authentication" pop if WinExists($IESecurityInformation) Then WinActivate($IESecurityInformation) ControlFocus($IESecurityInformation,"","&Yes") ControlClick($IESecurityInformation,"","&Yes") Sleep(10) EndIf ;;handle Microsoft Internet Explorer if (WinExists($MSIExplorer)) Then WinActivate($MSIExplorer) ;;first try ControlFocus($MSIExplorer,"","&Yes") ControlClick($MSIExplorer,"","&Yes") ;;second try ControlFocus($MSIExplorer,"","OK") ControlClick($MSIExplorer,"","OK") EndIf Wend I work for an Automation Projects. I am looking for scripts and advice. Thanks, Jitendra Edited March 3, 2008 by jitu Link to comment Share on other sites More sharing options...
Bert Posted March 3, 2008 Share Posted March 3, 2008 WHat happens when you use the AutoIt WIndow Info tool on the popup to get the ID's of the controls? The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
jitu Posted March 3, 2008 Author Share Posted March 3, 2008 WHat happens when you use the AutoIt WIndow Info tool on the popup to get the ID's of the controls?I tried that but no information displayed in AutoIt info tool (No id for contrl). Firefox popups are not recognizing properly.. that's why not able to create script. Link to comment Share on other sites More sharing options...
jitu Posted March 4, 2008 Author Share Posted March 4, 2008 I tried that but no information displayed in AutoIt info tool (No id for contrl). Firefox popups are not recognizing properly.. that's why not able to create script.Any body has info about this??How i can click on firefox Popups?? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now