Micro Focus QTP (UFT) Forums
Fireevent ondblclick hangs QTP until window is closed - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Others (https://www.learnqtp.com/forums/Forum-UFT-QTP-Others)
+--- Thread: Fireevent ondblclick hangs QTP until window is closed (/Thread-Fireevent-ondblclick-hangs-QTP-until-window-is-closed)



Fireevent ondblclick hangs QTP until window is closed - Andor - 06-01-2015

Hi,

I'm automating a Web application and I have a problem with the Fireevent ondblclick command in QTP 10.0.

The code line is this:

Code:
Browser("CommonSaaS").Window("Offer Selection -- Webpage").Page("Offer Selection").WebTable("html id:= DataTable_tblProduct").Object.rows(row_count-1).cells(1).Fireevent "ondblclick"

When executing the double click is done by QTP and a window opens as it should. But QTP keeps hanging on that line until I close the window manually.

I'm guessing it is because of the window somehow. The window seems to be in focus in Explorer.

Have anyone any idea why ?


RE: Fireevent ondblclick hangs QTP until window is closed - babu123 - 06-01-2015

try to use wait. other way is use send key method to send tab or Escape key so popup will be closed.


RE: Fireevent ondblclick hangs QTP until window is closed - Andor - 06-01-2015

Hello babu123,

Thank you for a fast reply.

Unfortunately a wait statement is not what I need. I need QTP to proceed execution without the window being closed. QTP is not timing out or failing with an error message. It just keeps waiting until I close the window manually.

I cannot figure out why.

A screenshot of the window is attached.