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
Tick the checkbox "Remember my choice for xauthorforexcel links"
Click on the "Open Link" button
OR
Click on the "Cancel" Button.
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 <<<<
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)
User contributions licensed under CC BY-SA 3.0