Micro Focus QTP (UFT) Forums
QTP 10.0 - Unable to identify web object with 'Window' class - 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 10.0 - Unable to identify web object with 'Window' class (/Thread-QTP-10-0-Unable-to-identify-web-object-with-Window-class)



QTP 10.0 - Unable to identify web object with 'Window' class - cmyee99 - 02-25-2010

Greetings Ankur,

I have encountered a an issue when running a test in a web application with more than 1 pop-up webpage dialog windows (QTP is unable to recognize the second webpage-dialog window that opened from a webpage-dialog, which is opened from the main browser).

During recording, QTP generated the following script:
Code:
Browser("ECM").Window("Search Contract Templates -- Webpage Dialog").Page("Search Contract Templates_2").Frame("content").WebElement("WebTable").Click

However, whenever I run the test, I've encountered Run Error as below:
Cannot Find the 'Web Table' object's parent "Search Contract Templates -- Webpage Dialog" (class Window). Verify that parent properties match an object currently displayed in your application

I have used the Object Spy to view the object properties, it is displayed as per attachment.
I've tried to update the step and object in repository by using 'Test maintenance run', but it doesn't solve the issue as well.

I've gone through the existing threads in this forum, and tried out the solution of enable the visible for Test object classes of Browser, frame, page, webElement, webTable under 'Web' Environment and 'Window' under 'Standard Windows' Environment, and run the test again in single monitor. But, it doesn't solve the issue Sad
Do you have any idea what is going wrong?

By the way, do you know why the Window class is not under 'Web' environment, but QTP identify the objects of the web application pop-up window as 'Window' class? Do I need to create 'Window' class in 'Web' environment? If so, could you please provide me the steps?

Please advice. Thank you so much Smile

Best Regards,
Ming Yee


RE: QTP 10.0 - Unable to identify web object with 'Window' class - raaga - 06-02-2011

hi

unable to identify object in window application


pls help me

i wrote the code pls check once

Code:
Set owinEdit=Description.Create()
'
'        owinEdit ("micclass").value = "WinEdit"
'
'        owinEdit("attached text").value= "Host &Name (or IP address)"
'
'        owinEdit("nativeclass").value = "Edit"
'
'        owinEdit("window id").value = 1044
'
'Window(ODesc).WinEdit(owinEdit).Set "vdl6"
'        

'object repository  
Window("PuTTY Configuration").WinEdit("Host Name (or IP address)").Set "vdl6"