Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
6 Trả lời
7864 Lượt xem

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

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hi Jain,

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

Ex:

xpath expr="//div[hasclass('class_name')]"
Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

thanks for helps, you can see more

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hi Jain, Could you solve this issue?

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhấ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

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

greqat tho

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 4 22
3228
0
thg 3 22
4
1
thg 8 21
2789
1
thg 7 25
2198
2
thg 7 25
7702