Ask a Question

TestComplete Desktop testing

SOLVED
rkadali
Occasional Contributor

TestComplete Desktop testing

I recorded a test in keyword mode.

 

UltraTree1 ClickItemXY "CLOSING PAPERS (1)", 122, 5, skNoShift Clicks the 'CLOSING PAPERS (1)' item of the 'UltraTree1' tree.

 

The number for value CLOSING PAPERS (1) changes every time. How to make it identified?

6 REPLIES 6
Marsha_R
Community Hero

Using wildcards should help you out. There are examples here

https://support.smartbear.com/testcomplete/docs/reference/misc/using-wildcards.html


Marsha_R
[Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
rkadali
Occasional Contributor

Thank you for your reply. The problem is, the object in Mapped objects showing as UltraTree1 collectively.  I am not able to locate Closing Papers(1) in object browser to add wild card.

Hello @rkadali - 

 

I believe you can get around this by using a different method - currently you are using a clickitemXY method which is using the exact name and coordinates of that element. Try a clickItem

instead - you can add a wildcard in the method value to wildcard out the (1)

 

ebarbera_0-1653316111953.png

 

Let me know if you have additional questions. 

 

Emma

rkadali
Occasional Contributor

Hi Emma,

 

Thank you for your response. I am new to test complete. I have got the following error when I tried to add wild card to the value.

The tree item 'CLOSING PAPERS (\d)' not found. 

rkadali_0-1653318110256.png

Please suggest me the type and mode. I tried different combinations but didnt work.

 

Thanks,

Roja

Hi @rkadali - 

 

The wildcard should be an '*' 

 

See if that helps.


Emma

rkadali
Occasional Contributor

Thank You Emma! It worked.

cancel
Showing results for 
Search instead for 
Did you mean: