Ask a Question

Issue identifying runtime object

annair73
New Contributor

Issue identifying runtime object

Hi,
I am new to Testcomplete and am struggling adding a checkpoint for a particular field, which appears at pagecml2.cell and with each iteration the .cell changes to .cell2 or .cell4 etc.

What can I do to ensure its finding this field?? I tried .cell* but that doesn't work.

TIA
4 REPLIES 4
Marsha_R
Community Hero

If you use Object Spy on that field, what does it give you for the whole name of the object. I understand that it will vary, but I'd like to see the format that TestComplete is using to name it.


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

When I use object spy on the object the selected object displays as Aliases.chrome.pagecml.cell first time, the 2nd page when it loads with new data it will display as .cell2 or .cell4 etc.

The fullName property shows Sys.Browser.page(https...my page url).FindElement("//td[.='name being searched']")

Hope this helps

What happened when you tried cell*


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

I couldn't add a * next to cell and save it, it throws an error.

I tried adding %variablename% for thr find element but that didn't work either
cancel
Showing results for 
Search instead for 
Did you mean: