Forum Discussion
nameMapping
It sounds like you don't have all of that frame mapped yet. If you take ObjectSpy and look at one of those fields, can you trace back to the Object Tree and then from there back to the Name Mapping Editor?
- roytberA8 years agoOccasional Contributor
Thank you for your reply. I did take ObjectSpy and look at the object that I want to click, I can trace back to the Object Tree and then back to the Name Mapping Editor. I am not sure if it is the nameMapping issue or the iFrame the has lots of tables inside. But if I run the test again from the selected operation(which is the point that made the test failed at the first place) , the test would pass.
Here the error messages from test log:
The object does not exist. See Additional Information for details.
There was an attempt to perform an action at point (0, 0) which is transparent or out of the window bounds.
- Marsha_R8 years agoModerator
A clue! A clue! (forgive the retro children's show reference)
If your test will proceed from there correctly, then it's likely you have a timing issue. The test is moving faster than the object is loading so it is Not Found when the test goes but when you click and keep it running it's Found.
There are some different ways to go to fix this.
1) You can put a Delay right before the line that gets the object not found message. This is a quick fix but you have to guess at how long to wait, just long enough but not so long that it delays your whole test. Usually 5000 or 10000 will fix it but it's not very precise.
2) If you know that the object in question should always show up, then use some variation of WaitChild to wait for the object to show up before you try to do anything with it.
If you find that this is happening to you in many places in your tests, then considering slowing down the time between events in your project settings. This will slow the whole test down some, but it is more efficient than trying to change it every where in the code.
- tristaanogre8 years agoEsteemed Contributor
Another possibility in addition to Marsha_R's suggestion of timing is that, if the components within the iframe in question are similar in properties to items in the other iframes, you may be dealing with a problem of object identification. It could be that you have properties in your mapping that could map to multiple possible objects.
Question: Do you have the iframes themselves mapped? While you might not be interacting with that object, you may need to map them in the hierarchy in order to better identify the components you ARE working with. You don't need to include the iframes in your Alias structure, but if you include them in the NameMapping itself, that might resolve the problem by providing an additional vector for identification
Related Content
- 2 years ago
Recent Discussions
- 28 days ago
- 5 days ago
- 5 days ago
- 9 days ago