On Feb 16, 9:05 am, Lutfi Dughman <
lutf...@gmail.com> wrote:
> simplest is
>
> //TR[4]//INPUT or //TABLE[@id='some id']/TBODY/TR[4]//INPUT
>
> but this is not wholly correct, i would suggest looking at the row and see
> what unique text does it's cells have, then you can reference the parent
> and the checkbox at the same time, like this:
>
> //TD[.='unique text']/..//INPUT
>
> what this does it find a TD that contains text 'unique text' then '/../'
> notation points to the parent node (which is the TR), then '//' notation
> will find any input field that is descendent of that TR.
>
> there are other ways to do it, different needs different ways, but this
> should be a good start
>