title: Selenium driver.find_elements_by_xpath; why is there no data returned
body: <p>Specs for the below question, I am using:</p>
  
  <pre><code>selenium (version 3.141.0)
  Chrome (version 76)
  wsl
  python (version 3.5.3)
  </code></pre>
  
  <p>The aim of the below script is to, for each of the drop downs on this page, extract the Reference, Plant, Direction and Disease columns, i.e. i want to pull down the info in all the grey boxes data like this:</p>
  
  <p><a href="https://i.stack.imgur.com/kqj6k.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/kqj6k.png" alt=""></a></p>
  
  <p>This code brings me to the page I want:</p>
  
  <pre><code>from selenium import webdriver
  from bs4 import BeautifulSoup
  import os
  from selenium.webdriver.support.ui import Select
  from selenium.webdriver.common.by import By
  from selenium.webdriver.chrome.options import Options
  
  
  options = Options()
  options.binary_location=r'C:\Program Files (x86)\Google\Chrome\Application\chrome.exe'
  options.add_experimental_option('excludeSwitches', ['enable-logging'])
  driver = webdriver.Chrome(options=options,executable_path='/mnt/c/Users/kela/Desktop/selenium/chromedriver.exe')
  
  #get the url
  driver.get('http://147.8.185.62/services/NutriChem-2.0/')
  
  
  #find the food name
  element = driver.find_element_by_id("input_food_name")
  element.send_keys("22663")
  
  
  #click food-disease association
  element = Select(driver.find_element_by_css_selector('[name=food_search_section]'))
  element.select_by_value('food_disease')
  
  
  #click submit and click plant-disease associations
  driver.find_element_by_css_selector('[value="Submit"]').click()
  driver.switch_to.frame(driver.find_element_by_css_selector('frame'))
  driver.find_element_by_css_selector('[onclick*="plant-disease"]').click()
  
  
  #to click into each drop down table rows
  rows = driver.find_elements_by_xpath("//table[@class='Level1Table']/tbody/tr[contains(@name,'hList')]/td/img[contains(@id,'imgList')]")
  print(rows) #this is empty
  </code></pre>
  
  <p>Because once I can loop through the tables that I want, i think i just need to do something like this to extract the data:</p>
  
  <pre><code>for row in table.findAll('tr'):
          food_source = row.find_all('td')[1].text
          pmid = row.find_all('td')[0].text
          disease = row.find_all('td')[3].text
          #haven't figured out how to get the association direction yet
          print(food_source + '\t' + pmid + '\t' + disease + '\t' + association_direction) 
  </code></pre>
  
  <p>I have two specific questions:</p>
  
  <ol>
  <li><p>Can someone point out why print(rows) is empty/where I'm going wrong in finding the data in the grey tables to extract?</p></li>
  <li><p>Is the idea/method that i have to extract the data the best method?</p></li>
  </ol>