Once you locate the element you can use the text property.
Example:
for element in self.driver.find_elements_by_tag_name('img'):
print element.text
print element.tag_name
print element.parent
print element.location
print element.size
More Related Contents:
- Switch to an iframe through Selenium and python
- Python + Selenium: Wait until element is fully loaded
- Python Windows Authentication username and password is not working
- Get HTML source of WebElement in Selenium WebDriver using Python
- Way to change Google Chrome user agent in Selenium?
- MaxRetryError: HTTPConnectionPool: Max retries exceeded (Caused by ProtocolError(‘Connection aborted.’, error(111, ‘Connection refused’)))
- Selenium waitForElement
- WebDriverException: Message: Service chromedriver unexpectedly exited. Status code was: 127
- How to deal with certificates using Selenium?
- What is the fastest way to open urls in new tabs via Selenium – Python?
- Reducing size of pyinstaller exe
- How to use Selenium with Python?
- Python 3.5 – “Geckodriver executable needs to be in PATH”
- Python: find_element_by_css_selector
- How to extract info within a #shadow-root (open) using Selenium Python?
- ERROR:gpu_process_transport_factory.cc(1007)-Lost UI shared context : while initializing Chrome browser through ChromeDriver in Headless mode
- How do I set browser width and height in Selenium WebDriver?
- WebDriverException: Message: Service /content/chromedriver unexpectedly exited. Status code was: -6 with ChromeDriver Google Colab and Selenium
- How to get rid of the infobar “Chrome is being controlled by automated test software” through Selenium
- TypeError: ‘module’ object is not callable error with driver=webdriver(“C:\\Python34\\Lib\\site-packages\\selenium\\webdriver\\chromedriver.exe”)
- How to send text to the Password field within https://mail.protonmail.com registration page?
- Selenium – Python – AttributeError: ‘WebDriver’ object has no attribute ‘find_element_by_name’
- PhantomJS with Selenium error: Message: ‘phantomjs’ executable needs to be in PATH
- selenium webdriver upload file
- Handle notifications in Python + Selenium Chrome WebDriver
- How to rotate various user agents using selenium python on each request
- Automation Google login with python and selenium shows “”This browser or app may be not secure””
- Slow scrolling down the page using Selenium
- Send keys not working selenium webdriver python
- Webdriver Screenshot