Modify

Opened 15 years ago

Closed 14 years ago

Last modified 14 years ago

#1770 closed Bug (No Bug)

Script getting pause when popup appears in IE

Reported by: anonymous Owned by: trancexx
Milestone: Component: AutoIt
Version: 3.3.6.0 Severity: None
Keywords: Cc: brajesheee@…

Description

After clicking "update" button using below command, a popup is getting displayed in IE. Due to that popup next code is not executing. Execution of the script pauses some where in IE.au3. Once we process the popup manually the execution resumes from IE.au3 and next code gets executed.

Check below code as example.

Code 1:

MsgBox(1,"Hi","Hello")
_IElinkClickByText($NCIForm,"Update");<<<POPUP will occur after this command>>
MsgBox(1,"HI","POPUP Occurred");<< this code will not execute until we process the popup manaully>>

Code 2:
MsgBox(1,"Hi","Hello")
_IElinkClickByText($NCIForm,"Update");<<<POPUP will occur after this command>>
sleep(1000);<< this code will not execute until we process the popup manually>>
if WinExists("Windows Internet Explorer") Then
WinActivate("Windows Internet Explorer")
send("{Space}")
EndIf

Above code is getting execute correctly when i comment the _IElinkClickByText statement and click the button manually. Check below code

Code 1:

MsgBox(1,"Hi","Hello")
;_IElinkClickByText($NCIForm,"Update");<<Clicking update button manually but not processing the POPUP>>
MsgBox(1,"HI","POPUP Occurred");<< this code will execute even if there is popup>>

Code 2:
MsgBox(1,"Hi","Hello")
;_IElinkClickByText($NCIForm,"Update");<<Clicking update button manually but not processing the POPUP>>
sleep(1000);<< this code will execute and process popup correctly>>
if WinExists("Windows Internet Explorer") Then
WinActivate("Windows Internet Explorer")
send("{Space}")
EndIf

Attachments (0)

Change History (7)

comment:1 by Valik, 15 years ago

Resolution: No Bug
Status: newclosed

This is not a support forum.

comment:2 by anonymous, 15 years ago

I know it is not support forum. Next line of code is not getting executed when ever popup occutrs is an issue with the tool not with code.

in reply to:  1 comment:3 by anonymous, 15 years ago

Replying to Valik:

This is not a support forum.

Raj2010:I know this is not support forum. Next line of code is not getting executed when ever popup occutrs is an issue with the tool not with code.

comment:4 by trancexx, 14 years ago

Milestone: 3.3.7.22
Owner: set to trancexx
Resolution: No BugFixed

Fixed by revision [6439] in version: 3.3.7.22

Version 0, edited 14 years ago by trancexx (next)

comment:5 by J-Paul Mesnage, 14 years ago

Resolution: Fixed
Status: closedreopened

comment:6 by J-Paul Mesnage, 14 years ago

Resolution: No Bug
Status: reopenedclosed

comment:7 by TicketCleanup, 14 years ago

Milestone: 3.3.7.22

Automatic ticket cleanup.

Modify Ticket

Action
as closed The owner will remain trancexx.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.