Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
6 Antwoorden
7881 Weergaven

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

Avatar
Annuleer
Beste antwoord

Hi Jain,

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

Ex:

xpath expr="//div[hasclass('class_name')]"
Avatar
Annuleer
Beste antwoord

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

Avatar
Annuleer
Beste antwoord

thanks for helps, you can see more

Avatar
Annuleer
Beste antwoord

Hi Jain, Could you solve this issue?

Avatar
Annuleer
Beste antwoord

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

Avatar
Annuleer
Beste antwoord

greqat tho

Avatar
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
1
apr. 22
3232
0
mrt. 22
4
1
aug. 21
2791
1
jul. 25
2230
2
jul. 25
7714