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 ?
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
1
Apr 22
|
5631 | ||
|
3
Apr 21
|
7358 | ||
|
2
Jun 20
|
4841 | ||
|
1
Oct 19
|
4019 | ||
|
1
Mar 15
|
13062 |