Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
6 Respostas
7866 Visualizações

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
Cancelar
Melhor resposta

Hi Jain,

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

Ex:

xpath expr="//div[hasclass('class_name')]"
Avatar
Cancelar
Melhor resposta

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

Avatar
Cancelar
Melhor resposta

thanks for helps, you can see more

Avatar
Cancelar
Melhor resposta

Hi Jain, Could you solve this issue?

Avatar
Cancelar
Melhor resposta

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
Cancelar
Melhor resposta

greqat tho

Avatar
Cancelar
Publicações relacionadas Respostas Visualizações Atividade
1
abr. 22
3228
0
mar. 22
4
1
ago. 21
2789
1
jul. 25
2203
2
jul. 25
7705