normalize-space

Selenium Python: How to capture li element with specific text

Selenium Python: How to capture li element with specific text Question: I am trying to extract urlToBeCaptured and Text to be captured from the HTML. The structure looks as follows: <li> " text with trailing spaces " <a href="urlToBeCaptured"> <span class ="class1> Text to be captured </span> <span class ="class2> Another text </span> </a> … …

Total answers: 1