title: Scraping website for prices using selenium
body: <p>I deleted the old post since it was not clear enough.</p>
  <p>I am scraping a website using selenium, the issue I am facing is while scraping the field using</p>
  <pre><code>driver.get('****')
  driver.find_element_by_id('fb_submit').click()
  driver.find_element_by_id('email').send_keys('')
  driver.find_element_by_id('password').send_keys('')
  driver.find_element_by_id('btn-login').click()
  driver.get('****')
  driver.find_elements_by_xpath(//[@class='price']) 
  </code></pre>
  <p>is that this field first populates with retrieving till the data populate in the page. Hence it retrieve a list with [&quot;retrieving&quot; and not pricing]
  How can I solve this scenario, I tried to use wait drive but it is already populated.\</p>
  <pre><code>                while tt:
                      elem =driver.find_elements_by_xpath('.//td[@data-title=&quot;Availability&quot;]')
                      elem =[d.text for d in elem]
                      Availability = sele.xpath('.//td[@data-title=&quot;Availability&quot;]/text()').extract()
  
                      # elemList =[d for d in elem]
                      for i in elem:
  
                          if &quot;retreiving&quot; not in i.lower() or &quot;Retreiving&quot; not in i or i != &quot;Retreiving&quot; :
                              tt = False
                              print(i,tt)
                          else:
                              tt =True
                              print(&quot;else&quot; ,i, tt)
                      time.sleep(0.5)
  </code></pre>
  <p>UPDATE:</p>
  <p>here is what I tried and still not working...</p>
  <p>2nd Update:</p>
  <pre><code>
     WebDriverWait(driver, 10).until_not(EC.text_to_be_present_in_element((By.XPATH, &quot;.//td[@data-title='Availability']&quot;), &quot;Retreiving&quot;))
  </code></pre>