How to find the index of a web element or image
I am trying to create a child table using child item method , but the problem is getting the right index(web table or image or web element for ex: ObjInner=ObjInner1.ChildItem(intRow,intCol,"WebTab le",intIndex)
Can anybody help me of understanding about how to declare the index.
Thanks in advance
Re: How to find the index of a web element or imag
Index will depend on how many tables you have inside that cell of the table. Just for FYI...ObjInner1 has to be a Webtable object only. You can use the below to see how many WebTables exists in cell
And while using the ChildItem function you can use the index as 0 if there is only one table. Else in case of multiple tables you will have to see which one to take.