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

I want to remove some fields from website billing information.in order to do that i have a div and its t-attf-class i want to xpath it

아바타
취소
베스트 답변

Hi Jain,

You can use hasclass() function in XML in the xpath.

Ex:

xpath expr="//div[hasclass('class_name')]"
아바타
취소
베스트 답변

Thanks for sharing https://www.mycfavisit.blog

아바타
취소
베스트 답변

thanks for helps, you can see more

아바타
취소
베스트 답변

Hi Jain, Could you solve this issue?

아바타
취소
베스트 답변

Hi Jain,

There could be many other ways but the best way I found to do this is using relative xpath as in here:
 https://stackoverflow.com/questions/50716507/how-to-give-odoo-xpath-in-t-attf-id 

The ideas is to target the block after the div (be it a field or an input, etc...) then add /..  at the end of the xpath expression get the parent block in this case the div container.


If this is not what you are looking for, can you share a code or its structure for better response? 

Cheers

아바타
취소
베스트 답변

greqat tho

아바타
취소
관련 게시물 답글 화면 활동
1
4월 22
3305
0
3월 22
4
1
8월 21
2894
1
7월 25
2405
2
7월 25
7892