Micro Focus QTP (UFT) Forums
Two dialog box issues - 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 Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: Two dialog box issues (/Thread-Two-dialog-box-issues)



Two dialog box issues - mv8167 - 09-26-2011

Hi everyone,

I have two dialog boxes. Each are exactly the same other than a few different objects on them. My code finds one of the dialog boxes and it's objects perfectly, but the other not at all. oSpy tells me that the obects and everyting are of both are the same path (Browser("Preferences").Page("Preferences")) and are in my OR.

How can I get QTP to see both of my dialog boxes in the same way?

Plz see my attachment for more info.

Any ideas? ;-)


RE: Two dialog box issues - guin.anirban - 09-27-2011

Code:
Browser("Preferences").Page("Preferences").Exist(5)
The above mentioned line of your script should in a condition like under a if-else statement.


RE: Two dialog box issues - mv8167 - 09-27-2011

Yea, i just was trying to get to see if it would see it. Yes, it should be in an If-Then... Thx for ur look-cee. ;-)


RE: Two dialog box issues - mv8167 - 09-28-2011

I am still having issues why sometimes my popup dialog box is being found, and other times the similar dialox boxes is not seen.

Attached I placed my thoughts. Hopefully someone has had this issue and can help me find a solution. Its just crazy that some dialog boxes are seen while others are not.

thx for any ideas.