Jump to content

Script for Firefox popup handle


Recommended Posts

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
Link to comment
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.

Link to comment
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??

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...