How to get text with Selenium WebDriver in Python

You want just .text.

You can then verify it after you’ve got it, don’t attempt to pass in what you expect it should have.

Leave a Comment