Micro Focus QTP (UFT) Forums
qtp is executing script on objects which are not visible on the screen - 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: qtp is executing script on objects which are not visible on the screen (/Thread-qtp-is-executing-script-on-objects-which-are-not-visible-on-the-screen)



qtp is executing script on objects which are not visible on the screen - kcm - 12-03-2009

Hi,

I used an IF condition on an object,if it appear on the screen. But the IF condition is getting executed even though the object is not visible.
I tried the following stmnts:
1.
Code:
Browser().Page().Frame().WebButton().exist(1)
2.
Code:
Browser().Page().Frame().WebButton().getroproperty("visible")
- returned True even though it is not visible.

Please let me know if anyone has a solution.

Thanks
Chandra


RE: qtp is executing script on objects which are not visible on the screen - Saket - 12-03-2009

Have you tried to Highlight the object? It must be highlighting some object there on your app.