İçereği Atla
Menü
Bu soru işaretlendi
6 Cevaplar
7886 Görünümler

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
Vazgeç
En İyi Yanıt

Hi Jain,

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

Ex:

xpath expr="//div[hasclass('class_name')]"
Avatar
Vazgeç
En İyi Yanıt

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

Avatar
Vazgeç
En İyi Yanıt

thanks for helps, you can see more

Avatar
Vazgeç
En İyi Yanıt

Hi Jain, Could you solve this issue?

Avatar
Vazgeç
En İyi Yanıt

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
Vazgeç
En İyi Yanıt

greqat tho

Avatar
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
1
Nis 22
3233
0
Mar 22
4
1
Ağu 21
2792
1
Tem 25
2234
2
Tem 25
7720