跳至内容
菜单
此问题已终结
1 回复
3127 查看

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?

形象
丢弃
最佳答案

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.

形象
丢弃
相关帖文 回复 查看 活动
3
9月 25
3176
0
8月 25
735
1
8月 25
2930
2
7月 25
8561
2
7月 25
4936