Re: Finding object by using dynamic xpath, using Partial Content text

Hi,

Thank you a lot for the link provided.

Fantastic example, directly from the product provider, of how the product can be created with the absolute ignorance of automated testing. Bookmarked.

The problem with all Angular controls that I've seen so far is that (by default?) they provide no unique and stable identifiers. The only entities that can be used to address UI elements is usually class name and visible text. I am pretty sure it is needless to say how unreliable this is.

Anyway, assuming that there is only one table on the page with the 'grid_container' identifier, personally I would do it like this:

-- Using table container as the root, search for all 'uiGrid_0007_cell' elements that correspond to the data cells of the first column (arCells = tableContainer.FindAllChildren(['ObjectType', 'ObjectIdentifier'], ['Panel', 'uiGrid_0007_cell'], 10).toArray() ) (Note: the array will be in reverse order, i.e. the first array element will correspond to the last column cell - this is specific of how TestComplete's .FindAllChildren() method works);-- Iterate through the returned array and get the value of the contentText property to get first column cell values.

Regards,Alex[Community Expert Group]____[Community Expert Group] members are not employed by SmartBear Software butare just volunteers who have some experience with the tools by SmartBear Softwareand a desire to help others. Postings made by [Community Expert Group] membersmay differ from the official policies of SmartBear Software and should be treatedas the own private opinion of their authors and under no circumstances as anofficial answer from SmartBear Software.[Community Expert Group] signature is used with permission by SmartBear Software.http://smartbear.com/forums/f83/t86934/community-experts/================================

Regards,Alex[Community Expert Group]____[Community Expert Group] members are not employed by SmartBear Software butare just volunteers who have some experience with the tools by SmartBear Softwareand a desire to help others. Postings made by [Community Expert Group] membersmay differ from the official policies of SmartBear Software and should be treatedas the own private opinion of their authors and under no circumstances as anofficial answer from SmartBear Software.[Community Expert Group] signature is used with permission by SmartBear Software.http://smartbear.com/forums/f83/t86934/community-experts/================================