Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Find element – span containing texts

Somewhere on a page there exists this element:

№ 81776925

For me this number (that is 81776925) is crucial.

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

enter image description here

My xpath:

"//span[contains (text(), ‘№ 81776925’ )]"

Not found.

Could you help me find the element by that very number?

>Solution :

and 81776925 are in different lines hence the xpath:

"//span[contains (text(), ‘№ 81776925’ )]"

can’t locate the element.

You can use:

"//span[contains(., '№') and contains(., '81776925')]"
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading