Forum Discussion
hhagay wrote:
My questions are:
1. How do I act on the delete/edit activities of a particular given name? There is no way (that I found) that I can "count" the table rows and somehow identify the row number and then pass it the "col" number.
FindChildByXPath can be handy, because XPath supports complex queries like "find the image pencil.png in the table row that contains LastName572".
For example, in the WebOrders demo the "Edit" button in the "Paul Brown" row can be identified by this XPath:
//table[@class='SampleTable']//tr[td/text() = 'Paul Brown']//input[@alt='Edit']
You could use something like that.
Thank you HKosova
Your sample looks to simply straight forward :)
The table is created dynamically by react so I am limited by my predictions.
However, I will utilize your example and other equally productive examples I received here and will keep you updated.
Thank you
Hagay
Related Content
- 9 months agoLuukdb
- 2 years agoloricotton
- 2 years agorkadali