title: driver.find_element_by_css_selector running slow toward end of page
body: <p>I have a <code>from selenium import webdriver</code> temperature web scraper working from <a href="https://weather.com/weather/tenday/l/USPA1290:1:US" rel="nofollow noreferrer">weather.com</a> using Python. The web scraper at the beginning of the page finds the correct high and low temperature almost instantly. However, toward the end of the page, it gets increasingly slower (takes 7 seconds toward the end). This is probably because the scraper has to go through more HTML to find the correct data(?). Here is the main part of the code:</p>
  
  <pre><code>high = driver.find_element_by_css_selector('#twc-scrollabe &gt; table &gt; tbody &gt; tr:nth-child(' + str(j) + ') &gt; td.temp &gt; div &gt; span:nth-child(1)').text
  low = driver.find_element_by_css_selector('#twc-scrollabe &gt; table &gt; tbody &gt; tr:nth-child(' + str(j) + ') &gt; td.temp &gt; div &gt; span:nth-child(3)').text
      date = driver.find_element_by_css_selector('#twc-scrollabe &gt; table &gt; tbody &gt; tr:nth-child(' + str(j) + ') &gt; td:nth-child(2) &gt; div &gt; span').text
  
  #auth &gt; div &gt; div &gt; div &gt; div &gt; div &gt; form &gt; button
  
  #twc-scrollabe &gt; table &gt; tbody &gt; tr:nth-child(1) &gt; td:nth-child(2) &gt; div &gt; span
  #twc-scrollabe &gt; table &gt; tbody &gt; tr:nth-child(2) &gt; td:nth-child(2) &gt; div &gt; span
  </code></pre>
  
  <p>Is there an easy (or complex) fix to this? And if you think there is no easy solution, that would be great help too (which could be the case?)</p>