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:
- ChromeDriver Error: ‘chromedriver’ executable needs to be in PATH [duplicate]
- selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element while trying to click Next button with selenium
- selenium in python : NoSuchElementException: Message: no such element: Unable to locate element
- Selenium: WebDriverException:Chrome failed to start: crashed as google-chrome is no longer running so ChromeDriver is assuming that Chrome has crashed
- How to configure ChromeDriver to initiate Chrome browser in Headless mode through Selenium?
- unknown error: session deleted because of page crash from unknown error: cannot determine loading status from tab crashed with ChromeDriver Selenium
- How to get attribute of element from Selenium?
- ‘Webdrivers’ executable may have wrong permissions. Please see https://sites.google.com/a/chromium.org/chromedriver/home
- How to work with a specific version of ChromeDriver while Chrome Browser gets updated automatically through Python selenium
- find_element_by_* commands are deprecated in selenium
- Filling in login forms in Instagram using selenium and webdriver (chrome) python OSX
- Clicking on Get Data button for Monthly Settlement Statistics on nseindia.com doesn’t fetch results using Selenium and Python
- Downloading file to specified location with Selenium and python
- How to rotate Selenium webrowser IP address
- How do you fix the “element not interactable” exception?
- How to open multiple webpages in separate tabs within a browser using selenium-webdriver and python
- Get value of an input box using Selenium (Python)
- ElementNotInteractableException: Message: element not interactable error while sending text to Email field on Quora using Selenium with Python
- How to change the User Agent using Selenium and Python
- SessionNotCreatedException: This version of ChromeDriver only supports Chrome version 84 using ChromeDriver and Chrome through Selenium and Python
- OSError: [Errno 8] Exec format error with GeckoDriver and Selenium on MacOS
- How to test non-standard drop down lists through a crawler using Selenium and Python
- How can I get text of an element in Selenium WebDriver, without including child element text?
- Python selenium: wait until element is clickable – not working
- How locate the pseudo-element ::before using Selenium Python
- How can we use Selenium Webdriver in colab.research.google.com?
- Selenium – visibility_of_element_located: __init__() takes exactly 2 arguments (3 given)
- How to locate the First name field within shadow-root (open) within the website https://www.virustotal.com using Selenium and Python
- Browser performance tests through selenium
- How to click on Load More button within Google Trends and print all the titles through Selenium and Python