How to get text with Selenium WebDriver in Python December 1, 2022 by Tarik 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.