The problem is that you are using find_element_by_xpath
which return only one WebElement (which is not iterable), the find_elements_by_xpath
return a list of WebElements.
Solution: replace find_element_by_xpath
with find_elements_by_xpath
More Related Contents:
- ChromeDriver Error: ‘chromedriver’ executable needs to be in PATH [duplicate]
- Selenium: WebDriverException:Chrome failed to start: crashed as google-chrome is no longer running so ChromeDriver is assuming that Chrome has crashed
- How to make Selenium not wait till full page load, which has a slow script?
- 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
- ‘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
- Running Selenium with Headless Chrome Webdriver
- WebDriverException: Message: Service chromedriver unexpectedly exited. Status code was: 127
- Unable to use Selenium to automate Chase site login
- What is the fastest way to open urls in new tabs via Selenium – Python?
- How to set selenium webdriver from headless mode to normal mode within the same session?
- How to download XML files avoiding the popup This type of file may harm your computer through ChromeDriver and Chrome using Selenium in Python
- How to disable CSS in Python selenium using ChromeOptions
- ERROR:gpu_process_transport_factory.cc(1007)-Lost UI shared context : while initializing Chrome browser through ChromeDriver in Headless mode
- How to load extension within chrome driver in selenium with python
- How do I pass options to the Selenium Chrome driver using Python?
- Chromedriver only supports characters in the BMP error while sending Emoji with ChromeDriver Chrome using Selenium Python to Tkinter’s label() textbox
- 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”)
- Python selenium: DevTools listening on ws://127.0.0.1
- SessionNotCreatedException: This version of ChromeDriver only supports Chrome version 84 using ChromeDriver and Chrome through Selenium and Python
- selenium – chromedriver executable needs to be in PATH [duplicate]
- How to disable CSS in Python Selenium using ChromeDriver using ChromeOptions
- Selenium – Python – AttributeError: ‘WebDriver’ object has no attribute ‘find_element_by_name’
- Handle notifications in Python + Selenium Chrome WebDriver
- How to rotate various user agents using selenium python on each request
- How to install Chrome Extension using Selenium & Python
- selenium.common.exceptions.WebDriverException: Message: Can not connect to the Service chromedriver.exe while opening chrome browser
- Unknown error: Chrome failed to start: exited abnormally