Get index of the specific td in tr by XPath
问题 I have thead and tbody in the table. Thead contains a few s in . Each of it have an id. I need to find the index of td in thead by id and then find by index in tbody. <table> <thead> <tr> <td data-date="2019-08-05"></td> <td data-date="2019-08-06"></td> //find index of this element <td data-date="2019-08-07"></td> </tr> </thead> <tbody> <tr> <td>aaa</td> <td>bbb</td> //find this element by found index <td>ccc</td> </tr> </tbody> </table> upd <table> <thead> <tr> <td data-date="2019-08-05"><