Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
6 ตอบกลับ
7868 มุมมอง

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

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
เม.ย. 22
3228
0
มี.ค. 22
4
1
ส.ค. 21
2789
1
ก.ค. 25
2204
2
ก.ค. 25
7705