cancel
Showing results for 
Search instead for 
Did you mean: 

Object browser is showing different button

SOLVED
Highlighted
Occasional Contributor

Object browser is showing different button

See the screnshot of the applocation. I want to click on OK button but it is failing.

When verified that name mapping it is showing correct OK button

but when showing object browser, it is showing submit button that is different from that actual OK button.

How to solve the issue for the Object browser so that it is record correct Ok button instead of the submit button.

1 ACCEPTED SOLUTION

Accepted Solutions
Community Manager

Re: Object browser is showing different button

Hi @mithunpal2,

 

Thanks for the screenshots. According to one of them, you use only one property to map the OK button - ObjectType = Button. I recommend that you add one more mapping criterion - contentText=OK. This will help TestComplete find the needed button. Please refer to the following article to learn how to add the additional identifier:

https://support.smartbear.com/testcomplete/docs/testing-with/object-identification/name-mapping/basi...

---------
Tanya Gorbunova
SmartBear Community Manager

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others.↓↓↓↓↓
4 REPLIES 4
Community Manager

Re: Object browser is showing different button

Hi @mithunpal2,

 

Thanks for the screenshots. According to one of them, you use only one property to map the OK button - ObjectType = Button. I recommend that you add one more mapping criterion - contentText=OK. This will help TestComplete find the needed button. Please refer to the following article to learn how to add the additional identifier:

https://support.smartbear.com/testcomplete/docs/testing-with/object-identification/name-mapping/basi...

---------
Tanya Gorbunova
SmartBear Community Manager

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others.↓↓↓↓↓
Occasional Contributor

Re: Object browser is showing different button

This button problem is resolve but I have similar issue and the issue is same but instead of button it is Textbox. and I am not able to solve the issue by the above solution as those textbox fields don't have contentText property defined.

Here name mapping showing correct picture of the textbox but when I am opening this in object browser, it is showing different textbox field and I am not abole to add more properties that are different.

 

See the attached screenshot.

name.png showing correct textbox. but when I am opening object browser it is different field.

Community Hero

Re: Object browser is showing different button

Same principle applies here, you need something else unique to that textbox, or even perhaps it's direct parent.

 

You might want to show the advanced view in the object browser to see additional properties on the text box. 


Thanks,
Carson

Click the Accept as Solution button if my answer has helped
Community Manager

Re: Object browser is showing different button

Hi @mithunpal2,

 

As @cunderw said, you need to map an object by adding a bit more reliable identification parameters. Using one parameter which indicates the type of the object may not be enough.

 

BTW, as my previous reply helped you resolve the original question, do you mind accepting it as a solution? You should see a big green button next to that post. Thanks.

---------
Tanya Gorbunova
SmartBear Community Manager

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others.↓↓↓↓↓
New Here?
Join us and watch the welcome video:
Top Kudoed Authors