Skip to content Skip to sidebar Skip to footer

Timeout When Using Click() Webdriver Selenium Function Python

This is my first web scraping project and I'm using selenium webdriver with Python in order to dynamically generate some csv files after choosing a few options on a website (though

Solution 1:

I've found a workaround for the problem.

Apparently, the click() function blocks the code until the page is "completely" loaded. However, for some reason, the page keeps loading forever (without anything else to load) and it holds my code till it reaches the timeout limit.

Instead of using click, I've changed it to key ENTER and the page still keeps loading forever but it doesn't hold the code anymore.

#FROM CLICK
driver.find_element_by_id('ctl00_ctl00_Conteudo_AntesTabela_btnExibir').click()

#TO SENDING ENTER (ue007)
driver.find_element_by_id('ctl00_ctl00_Conteudo_AntesTabela_btnExibir').send_keys(u'\ue007') 

Post a Comment for "Timeout When Using Click() Webdriver Selenium Function Python"