Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
6 Відповіді
7872 Переглядів

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
2205
2
лип. 25
7705