how to handle "Launch Application" pop up window in firefox using autoIT

1

I am testing a webpage (in firefox browser) using selenium where there is a scenario which opens windows pop-up which I need to control(handle) using AutoIT.

I have tried the following code but it did not work.

WinWaitActive("Launch Application","Launch Application",10)
ControlCommand("Launch Application", "Launch Application","","Check")
ControlClick("Launch Application","Launch Application","","left")

How do I do the following using the autoIT

  1. Tick the checkbox "Remember my choice for xauthorforexcel links"

  2. Click on the "Open Link" button

    OR

  3. Click on the "Cancel" Button.

Screenshot for reference

AutoIT Window Info is as follows:

>>>> Window <<<<
Title:  Launch Application
Class:  MozillaDialogClass
Position:   476, 317
Size:   328, 350
Style:  0x16CC0084
ExStyle:    0x00000101
Handle: 0x00000000001409A6

>>>> Control <<<<
Class:  
Instance:   
ClassnameNN:    
Name:   
Advanced (Class):   
ID: 
Text:   
Position:   
Size:   
ControlClick Coords:    
Style:  
ExStyle:    
Handle: 

>>>> Mouse <<<<
Position:   731, 632
Cursor ID:  0
Color:  0x85B3DF

>>>> StatusBar <<<<

>>>> ToolsBar <<<<

>>>> Visible Text <<<<


>>>> Hidden Text <<<<
autoit
asked on Stack Overflow Jan 4, 2017 by Devendra • edited Jan 4, 2017 by Devendra

1 Answer

2

You are looking for a window with both Title and Text as "Launch Application" but the window only has that for the Title. Change the WinWaitActive() to

WinWaitActive("Launch Application", "",10)

If that doesn't help, it is possible the window is not active. If so, use:

Local $hWnd = WinWait("Launch Application","",10)
WinActivate($hWnd)
answered on Stack Overflow Jan 4, 2017 by Karl_S

User contributions licensed under CC BY-SA 3.0