title: How do i scrape something from multiple divs under one parent div in selenium?
body: <p>Hello i am new to scraping, I want to scrape some text from multiple divs that are under one parent div.. I have attached the screen shot of the html. <a href="https://i.stack.imgur.com/6mxnd.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6mxnd.png" alt="html screenshot"></a>
  Under the class "partnerships_cont"
  there are multiple divs with class "items".. from these divs i want to scrape the div i marked. But i run into an error.
  This is the code i used:</p>
  
  <pre><code>def get_partnerships(driver):
      WebDriverWait(driver,15).until(EC.visibility_of_element_located((By.XPATH,"//div[contains(@class, 'partnerships-cont')]/div[1]")))
      partnerships_cont = driver.find_element_by_xpath("//div[contains(@class, 'partnerships-cont')]")
      items = partnerships_cont.find_element_by_xpath("//div[contains(@class, 'item')]")
  
      for item in items:
          div = item.find_element_by_xpath("//div[1]")
          text = div.find_element_by_xpath("//div").text
          print(text)
  
  driver = webdriver.Chrome(r'C:\Users\User\AppData\Local\Programs\Python\Python37\Lib\site-packages\chromedriver_py\chromedriver_win32.exe')
  driver.get('https://xangle.io/project/ZRX/full-disclosure')
  get_partnerships(driver)
  </code></pre>
  
  <p>No matter what i do i get this error:</p>
  
  <pre><code>TypeError: 'WebElement' object is not iterable
  </code></pre>
  
  <p>please could you tell me why i get this error? and how do i fix it?</p>