Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
3104 Переглядів

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.

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
3
вер. 25
3155
0
серп. 25
706
1
серп. 25
2890
2
лип. 25
8537
2
лип. 25
4925