cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to find object

SOLVED
Occasional Contributor

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 Click command:

Aliases.​browser.​pageVersionlogreport.​panelWrapper.​panelShowcase.​panelInfo.​formViewlistform.​submitbuttonSearch

 

Reason

The parent object was not found:

Aliases.​browser.​pageVersionlogreport.​panelWrapper.​panelShowcase.​panelInfo.​formViewlistform

1 ACCEPTED SOLUTION

Accepted Solutions
Community Hero

Re: Unable to find object

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
13 REPLIES 13
Community Hero

Re: Unable to find object

Look at the properties you are using fo find formViewlistform in your namemapping and them compare that to what you see in the object browser between the two different environments. There is likely something that is not static that you will need to account for.


Thanks,
Carson

Click the Accept as Solution button if my answer has helped
Occasional Contributor

Re: Unable to find object

Hi cunderw,

I attach my object with attributed, how can I understand if I have a non static parameter?

Community Hero

Re: Unable to find object

Can you also provide a screen shot of the object browser with object selected?


Thanks,
Carson

Click the Accept as Solution button if my answer has helped
Occasional Contributor

Re: Unable to find object

You mean this?

Community Hero

Re: Unable to find object

Not quite, on the left pane where your logs are there is a tab at the top called object browser. You need to find your object that is not being found in there.


Thanks,
Carson

Click the Accept as Solution button if my answer has helped
Occasional Contributor

Re: Unable to find object

 
Community Hero

Re: Unable to find object

Ok, so it looks like the panelShowcase is where it stops working with your mapping. Provide similar screenshots for that object.

 


Thanks,
Carson

Click the Accept as Solution button if my answer has helped
Occasional Contributor

Re: Unable to find object

Panelshowcase.

How can I understand if I use static params? and how can I set TC, in order to do not fill static params?

Community Hero

Re: Unable to find object

Also need to see the namemapping for that object.

 

What is probably happening is some property that is being used to map the object has slightly different values between the two environments, so you have to compare and adjust by picking a different property or wild-carding it. There is no possible way to make test complete 100% resiliant to this automatically. It does it's best guess, but 99% of the time you will have to manually adjust the properties of your mapping criteria.


Thanks,
Carson

Click the Accept as Solution button if my answer has helped
New Here?
Join us and watch the welcome video:
Watch the New Interview
APITestingMistake#2
Top Kudoed Authors