تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
3115 أدوات العرض

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
سبتمبر 25
3164
0
أغسطس 25
722
1
أغسطس 25
2914
2
يوليو 25
8552
2
يوليو 25
4932