How to Click on a Button within a datagrid after finding the correct username in C#

后端 未结 2 1874
执笔经年
执笔经年 2020-12-22 04:06

So here is my Code that is able to get the header of the datagrid column and find the matching values from the user inputs. For Example if input is \"jdoe\" it will look at

2条回答
  •  误落风尘
    2020-12-22 04:21

    A possible solution would be to use an xpath that finds the line that has a cell with your text and from there to select the button.

    example:

    //tr[.//td[text()='jdoe']]//button
    

提交回复
热议问题