跳至内容
菜单
此问题已终结
6 回复
7740 查看

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,

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
3127
0
3月 22
4
1
8月 21
2700
1
7月 25
1298
2
7月 25
7024