Forum Discussion
rgratis
11 years agoFrequent Contributor
I've occasionally had this problem too (move pointer to get popup, but popup disappears once you exit the text). Sometimes, there is a very small area you can traverse from the text to the popup, often at the lower left corner of the text, or a short delay in which you can rush to the popup object before it disappears. If not, here is a very roundabout solution I've found:
- Open TestComplete.
- Make certain you are displaying the "Save/Load Snapsnots" toolbar. You can do this by right-clicking a toolbar and checking that option.
- Display Object Browser tab in TestComplete.
- Open application side-by-side with TestComplete window.
- Highlight the the parent in the Object Browser tree under which you think the popup will appear. Try to get the closest parent possible.
- Click the "Save Object Snapshot" button on the toolbar. This brings up a window to set up the snapshot. Browse to make a file name and check off the information you need to save. Only save what is absolutely necessary, otherwise, this can take forever. I usually do "Default and additional properties" and then manually add the extra properties I want captured, like "contentText" or such. Make sure the "Save child objects recursively" option is checked to capture the child popup.
- Keeping the TestComplete window active, place mouse pointer over text in application to generate popup, then hit the Enter key to trigger the Save Object Snapshot action. Leave mouse pointer in place over hover text while TestComplete saves the object snapshot. You can then use "Load Snapshot" to open the snapshot and find your popup object.
You may need to hover and wait a bit for the tree to update before hitting Enter if you don't manage to capture the desired popup the first time. If anyone else has come up with a good way to find objects that you can place the mouse pointer over, let me know...
- Open TestComplete.
- Make certain you are displaying the "Save/Load Snapsnots" toolbar. You can do this by right-clicking a toolbar and checking that option.
- Display Object Browser tab in TestComplete.
- Open application side-by-side with TestComplete window.
- Highlight the the parent in the Object Browser tree under which you think the popup will appear. Try to get the closest parent possible.
- Click the "Save Object Snapshot" button on the toolbar. This brings up a window to set up the snapshot. Browse to make a file name and check off the information you need to save. Only save what is absolutely necessary, otherwise, this can take forever. I usually do "Default and additional properties" and then manually add the extra properties I want captured, like "contentText" or such. Make sure the "Save child objects recursively" option is checked to capture the child popup.
- Keeping the TestComplete window active, place mouse pointer over text in application to generate popup, then hit the Enter key to trigger the Save Object Snapshot action. Leave mouse pointer in place over hover text while TestComplete saves the object snapshot. You can then use "Load Snapshot" to open the snapshot and find your popup object.
You may need to hover and wait a bit for the tree to update before hitting Enter if you don't manage to capture the desired popup the first time. If anyone else has come up with a good way to find objects that you can place the mouse pointer over, let me know...
Related Content
- 3 years ago
- 3 years ago
- 12 years ago
- 2 years ago
- 2 years ago
Recent Discussions
- 2 days ago
- 3 days ago