02-25-2010, 06:36 AM
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:
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
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
Best Regards,
Ming Yee
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
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
Best Regards,
Ming Yee