Skip to Content
Menu
This question has been flagged
1 Atsakyti
3103 Rodiniai

In Journal Entry for there are two buttons are available with same name as action_post.first one is Post and second one is Confirm.
I want to add replace the first button Post. How to do it through xpath?

Portretas
Atmesti
Best Answer

You can achieve it using [1] which will take first button of the name.

<xpath expr="//button[@name='action_post'][1]" position="replace">

Hope it will help you.

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
3
rugs. 25
3155
0
rugp. 25
706
1
rugp. 25
2890
2
liep. 25
8537
2
liep. 25
4925