Hi,
I have no clue how the objects in each of the two cases are different
|
In the first variant, the needed property is a child of AllServicesCard, and in the second variant, you use the FindChild method searching for the needed property among children, grandchildren, and great grandchildren. It seems that the property is not a child, but a grandchild or a great grandchild - that is why, your new code can find the object, while the original code can't do it.
This works ONLY IF I don't rearrange the rows (by sorting) or columns (by dragging the column headers and repositioning them). How to overcome this issue - i.e. have a way to get me the cell text even if the table rows and columns are reordered?
|
We have failed to reproduce the problem: reordering rows and columns does not make the function work incorrectly. Try refreshing the objects tree from your script: add the following line at the beginning of the GetTableControlCellValue function:
Aliases.iexplore.Refresh();
If it does not help, please clarify exactly what works incorrectly in the function and
send us your project suite along with the failed execution logs.