Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
6 Ответы
7907 Представления

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
3238
0
мар. 22
4
1
авг. 21
2812
1
июл. 25
2277
2
июл. 25
7751