Unable to find object
SOLVED- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Unable to find object
Hi guys,
I use TC 14.0, and at the moment my browser is Chrome, but my webapp can run in IE or firefox.
I map manually objects, because using recording mode I found different Issues.
My web app is one, but can run on different ips, obviously must show the same results for each ip.
My problem is that a lot of times when I test my code and I run in ip(one), everythings is ok but if I switch in ip(two), objects are not found.
Below a typical example:
Unable to find the following object when executing the
Reason The parent object was not found:
|
Solved! Go to Solution.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You would do it while writing code / creating your namemapping.
So, if you look at your screenshots, you have the object mapped using idStr set to "wrapper," but in the object browser the object's idStr is "showcase" which is why Test Complete cannot find it. You will have to find some other property, or potentially use extended find to better and more reliably find your objects.
If you haven't yet, I highly reccomend reading all of the documention around object identification.
https://support.smartbear.com/testcomplete/docs/testing-with/object-identification/index.html
Thanks,
Carson
Click the Accept as Solution button if my answer has helped
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Ok I'll try, I'll reply to you thanks
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Carson,
at the end, I hope I found the solution.
Step are:
1) Write code and map object for ip 1
2)Reexecute test for ip 2, most of times objects do not matching, remap again, end reexecute rest
3)Reexecute test for ip 1, for this step normally everything is ok
4)Reexecute test for ip 2
Now when an object is not found, I let TC to map automatically object.
This method is too expensive but I have good results.
Note that my solution run for different ips, and I tested for 4 and it's ok
@cunderw wrote:
You would do it while writing code / creating your namemapping.
So, if you look at your screenshots, you have the object mapped using idStr set to "wrapper," but in the object browser the object's idStr is "showcase" which is why Test Complete cannot find it. You will have to find some other property, or potentially use extended find to better and more reliably find your objects.
If you haven't yet, I highly reccomend reading all of the documention around object identification.
https://support.smartbear.com/testcomplete/docs/testing-with/object-identification/index.html

- « Previous
-
- 1
- 2
- Next »
- « Previous
-
- 1
- 2
- Next »