I'm trying to get hold of two users in a hideous structure with tables within tables and I'm just not getting it to work... The structure is something like this (inner most table):
<table>
<tbody>
<tr>
<tr>
<tr>
<tr>
<td>
<td>
<td>
<input lotsofuselesstext value="Steve">
<img>
</td>
<td>
</tr>
<tr>
<tr>
<tr>
<td>
<td>
<td>
<input lotsofuselesstext value="Mark">
<img>
</td>
<td>
</tr>
</tbody>
</table>
I'm trying to get hold of Steve and Mark. I can get an xpath that will give me the two input tags, but no matter what I can't get the value fields. I'm using Playwright with C#...
I've tried so many variants that I can't keep track of them, but some that I still have in my code are:
var Planners = await Page.QuerySelectorAllAsync("//*[@summary=\"Planners\"]/tbody/tr/td[3]/input");
var values = await Task.WhenAll(Planners.Select(async element => await element.GetAttributeAsync("value")));
var Planners= await Page.Locator("//*[@summary=\"Planners\"]/tbody/tr/td[3]/input").ElementHandlesAsync();
var Planners = await Page.Locator("//*[@summary=\"Planners\"]/tbody/tr/td[3]/input").AllTextContentsAsync();
And, I'm new to this, as if you couldn't already tell...