storeElementIndex based on column content


I wanted to store the element index number (i.e., what number table row it is) of the Fac_No value for the Catonsville Elementary school (i.e, Fac_No=0101) in the table below so that I could further store the address data from the rest of the cells on the same row (a cheap join method ... lol), but didn't know exactly what row that school would appear on since this was a dynamically generated table of data. I was iterating through these values from a previous page of similiar data (where Fac_No was also available) where I stored the FacNo value as ${tempFacNo} ... so that when I came to this page, even though I didnt know what row the FacNo was on, I could find the row number via an Xpath contains expression using the tempFacNo variable:

    <td>//tr/td[text() = "${tempFacNo}"]</td>