Sign in to follow this  
Followers 0
jitu

Script for Firefox popup handle

4 posts in this topic

#1 ·  Posted (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 by jitu

Share this post


Link to post
Share on other sites



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.

Share this post


Link to post
Share on other sites

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??

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0