Skip to Content
Menú
This question has been flagged
1 Respondre
3102 Vistes

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?

Avatar
Descartar
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.

Avatar
Descartar
Related Posts Respostes Vistes Activitat
3
de set. 25
3148
0
d’ag. 25
700
1
d’ag. 25
2875
2
de jul. 25
8527
2
de jul. 25
4922