I am using Odoo15, and I am trying to access the text content in the following XML code :
I have tried using //div/text() and also //div[contains(text(), 'On hand: ')] but that did not work. Can anyone help me?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
If you need to change the On hand string, try replacing the entire div
xpath locating by text() (contents) breaks in translated context.
So you'll get the error "element cannot be located in the parent view".
You can try this expr
expr="//*[text()='On hand: ']"
I get the following error when accessing the view :
" the element cannot be located in the parent view "
can you share your code ?
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng kýBài viết liên quan | Trả lời | Lượt xem | Hoạt động | |
---|---|---|---|---|
xpath attributes add to domain
Đã xử lý
|
|
1
thg 4 22
|
6636 | |
|
3
thg 4 21
|
8357 | ||
How to add notebook via xpath
Đã xử lý
|
|
2
thg 6 20
|
5612 | |
|
1
thg 10 19
|
4586 | ||
|
1
thg 3 15
|
13787 |