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.
More Related Contents:
- Selenium – wait until element is present, visible and interactable
- How to select a drop-down menu value with Selenium using Python?
- How to switch to new window in Selenium for Python?
- DeprecationWarning: executable_path has been deprecated selenium python
- Of the many findElement(s)/By functions in Selenium, when would you use one over the other?
- Running Selenium WebDriver python bindings in chrome
- Find the reCAPTCHA element and click on it — Python + Selenium
- How to simulate HTML5 Drag and Drop in Selenium Webdriver?
- Is it possible to hide the browser in Selenium RC?
- Download file through Google Chrome in headless mode
- Take screenshot of full page with Selenium Python with chromedriver
- Python webdriver to handle pop up browser windows which is not an alert
- How to fix Selenium WebDriverException: The browser appears to have exited before we could connect?
- SyntaxError: Failed to execute ‘evaluate’ on ‘Document’: The string ‘//img[contains(‘1236548597′)]’ is not a valid XPath expression
- “NoSuchWindowException: no such window: window was already closed” while switching tabs using Selenium and WebDriver through Python3
- Selenium won’t open a new URL in a new tab (Python & Chrome)
- Set chrome browser binary through chromedriver in Python
- Python: Selenium with PhantomJS empty page source
- Is there a way to find an element by attributes in Python Selenium?
- Download and save multiple csv files using selenium and python from popup
- How to accept the popup presented when installing extension in Selenium?
- Fetch all href link using selenium in python
- Why switching to alert through selenium is not stable?
- NoSuchElementException: Message: Unable to locate element while trying to click on the button VISA through Selenium and Python
- How to read text that is under #shadow-root (user-agent)
- How to fix python-selenium error “connection refused” when initializing a selenium webdriver?
- Webpage Is Detecting Selenium Webdriver with Chromedriver as a bot
- How to select multiple options from multi select list using Selenium-Python?
- Selenium Python – Finding Elements by Class Name With Spaces
- Selenium + Python: How to stop page loading when certain element gets loaded?