Skip to Content
Menu
This question has been flagged
1 Odpoveď
3125 Zobrazenia

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
Zrušiť
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
Zrušiť
Related Posts Replies Zobrazenia Aktivita
3
sep 25
3173
0
aug 25
733
1
aug 25
2928
2
júl 25
8560
2
júl 25
4936