Python Selenium - Timeout Exception
<p><br></p>

<p>I'm using selenium to get the html for this site: <br>
<code>http://timesofindia.indiatimes.com/world/us</code><br></p>

<p>I'm using selenium because this site only gives you all the html if you scroll down. However when I run this code: <br></p>

<pre><code> # Open the Driver
 driver = webdriver.Chrome(chromedriver)

#create a list to store the htmls
master_lst = []

#looping through the times of india urls
for url in urls[:3]:

#make the driver the the url
driver.get(url)
#this is to scroll down twelve time
for i in range(12):
    # wait 5 seconds
    time.sleep(5)
    driver.execute_script("window.scrollTo(0, document.body.scrollHeight);")

html_source = driver.page_source
data = Beautifulsoup(html_source, 'lxml')
master_lst.append(data)
</code></pre>

<p>I get this error: <br>
<code>TimeoutException: Message: timeout: Timed out receiving message from renderer: -0.004</code></p>

<p>I've tried to change the sleep times and the times I scroll down to no avail. <br>
I've seen similar question in here but none that address this kind of problem. <br>Let me know what you all think!<br> Thanks!</p>

<p>You may need to <em>adjust the script timeout</em>:</p>

<pre><code>driver.set_script_timeout(10)
</code></pre>

python selenium-webdriver web-scraping timeout