title: looping through a set of iframes
body: <p>how the program work ?
  downloading multiple files with a loop, after u select the document it opens in an iframe with a download icon, after pressed the file is downloaded , the program close the the iframe and restart the loop , picking a new item and so on, the problem happens in the second loop after it opens the iframe and select it , it cant locate the download icon. 
  its the same icon with the same xpath inside the same iframe how it cannot be located in the second try ?</p>
  
  <pre><code>def DownloadCurrentApprovals():
  table=driver.find_element_by_xpath('//*[@id="ctl00_MainContent_ApprovalGridViewControl_ApprovalGridViewInfo_ctl00"]')
  i = 0
  for tr in table.find_elements_by_tag_name("tr"):
      #selecting the item to be printed 
      robo = driver.find_element_by_xpath('//*[@id="ctl00_MainContent_ApprovalGridViewControl_ApprovalGridViewInfo_ctl00__{}"]'.format(i)).click()
      #press the download icon which will open the iframe
      robo = driver.find_element_by_xpath('//*[@id="ctl00_MainContent_ApprovalGridViewControl_ApprovalGridViewInfo_ctl00_ctl02_ctl00_ApprovalRadToolBar"]/div/div/div/ul/li[2]/a/span/span/span/span').click()
      driver.implicitly_wait(10)
      #get the frame
      frame = driver.find_element_by_xpath('//*[@id="RadWindowWrapper_ctl00_MainContent_RadWindowApprovalReport"]/table/tbody/tr[2]/td[2]/iframe')
      driver.switch_to.frame(frame)
      #pressing the download icon inside the iframe
      element = wait.until(EC.element_to_be_clickable((By.XPATH, '//*[@id="ReportViewer_ReportToolbar_PrintGr_Print_Button"]/tbody/tr/td/input[1]')))
      #switching to close the iframe
      driver.switch_to.default_content()
      robo = driver.find_element_by_xpath('//*[@id="RadWindowWrapper_ctl00_MainContent_RadWindowApprovalReport"]/table/tbody/tr[1]/td[2]/table/tbody/tr/td[3]/ul/li[5]/a').click()
      i+=1
  </code></pre>
  
  <p>error --raise TimeoutException(message, screen, stacktrace)
  selenium.common.exceptions.TimeoutException: Message:</p>
  
  <p><a href="https://i.stack.imgur.com/RtDKS.png" rel="nofollow noreferrer">table and rows code</a></p>