Forum Discussion
Try just these lines of code but put all the actual values in the right hand side, then post a screenshot of the results please. There's something missing and we need to see exactly what's happening.
var intPass = aqObject.GetPropertyValue(GetValue2, "contentText");
Log.Message(intPass);
Hi Marsha_R,
Thank you for your reply.
I don't know why i still can't search object using Name attibute
Instead of using Name i now change to ObjectIdentifier
var GetValue2 = page.NativeWebObject.Find("ObjectIdentifier",intValue,"td"); var intPass = aqObject.GetPropertyValue(GetValue2, "contentText"); Log.Message(intPass);
the code above work well without any problem for me.
- AlexKaras6 years agoChampion Level 3
Hi,
> can't search object using Name attibute
Are you talking about object's Name property displayed in the Object Browser or about Name attribute in the HTML markup?
In the former case, the search by the Name property is not recommended in TestComplete. See Remarks section of the Find Method help topic for more details.
In the latter case, the search for the object by its markup attribute was added to the TestComplete 12.60 Beta (https://community.smartbear.com/t5/TestComplete-General-Discussions/TestComplete-Beta-Program-Try-AI-Driven-Visual-Testing/td-p/168632).
Related Content
- 10 years ago15828555437