콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
3128 화면

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