Forum Discussion
Hi,
A list of possible cause of the problem can be found here: https://support.smartbear.com/testcomplete/docs/testing-with/running/handling-errors/object-not-found/cannot-obtain-window.html
Are we able to identify an object within the pop up?
Best,
Matt
Hi,
The error is not important to me because it is not an error for me. Because of TestComplete cannot find the related variable it takes error but i wonder how can i handle to don't take an error. I also tried TRY-CATCH but it still idenfied being as an error.
- mattb4 years agoStaff
I wonder if it is failing because the pop up is not in focus.
If we add a setfocus method to the parent level of the tested object, that may help force TestComplete to identify the parent level, and therefore the child object.
Example scripts can be found here: https://support.smartbear.com/testcomplete/docs/reference/test-objects/members/window-and-process/setfocus-method-window-object.html- cagan4 years agoOccasional Contributor
Hi, is there anyting like that if a pop-up opens then click OK button, else just write a informative log and don't do anything. Because of popup object is set, TestComplete see it being as error.
- mattb4 years agoStaff
I would also see what settings on the current project properties to handle unexpected windows. Check within current project properties, and then playback.
https://support.smartbear.com/testcomplete/docs/working-with/managing-projects/properties/playback.html
https://support.smartbear.com/testcomplete/docs/testing-with/running/handling-errors/unexpected-windows.htmlMaybe we are deleting the window before we can interact with it.
Related Content
- 5 years ago
- 6 years ago
Recent Discussions
- 11 hours ago
- 7 days ago
- 10 days ago