简体   繁体   English

使用 chrome selenium webdriver 时如何避免超时错误

[英]How can I avoid a timeout error while using a chrome selenium webdriver

I have created multiple python scripts using selenium that will generate a web page that contains a data.table that is almost 100,000 rows and 25 columns.我使用 selenium 创建了多个 python 脚本,这些脚本将生成一个 web 页面,其中包含一个 data.table,几乎有 100,000 行和 25 列。 One example of this code can be found here . 可以在此处找到此代码的一个示例。 Afterwards, I intend to scrape that table with beautiful soup.之后,我打算用美汤刮那一桌。 However I time and again get this error message.但是我一次又一次收到此错误消息。

selenium.common.exceptions.TimeoutException: Message: timeout: Timed out receiving message from renderer: -0.001
  (Session info: chrome=81.0.4044.113)

Is there a reason why this message keeps popping up?是否有此消息不断弹出的原因? Is there a way to fix the code so that my webpage can keep downloading and allow me to scrape it?有没有办法修复代码,以便我的网页可以继续下载并允许我抓取它?

Any assistance is truly appreciated.非常感谢任何帮助。


So I have the following code to transition from one webpage to another, but I still get the same exact timeout error.所以我有以下代码从一个网页转换到另一个网页,但我仍然得到相同的超时错误。

driver.switch_to.window(driver.window_handles[1])
WebDriverWait(driver, 60).until(EC.visibility_of_element_located((By.XPATH, '/html/body/p[2]/text()[2]')))
df_url = driver.current_url

what am I missing out of this that will make it no longer timeout?我错过了什么让它不再超时?

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何使用 selenium WebDriver Chrome 更改我的 IP - How can I change my IP using selenium WebDriver Chrome 如何避免 selenium webdriver 的套接字超时? - How to avoid a socket timeout for selenium webdriver? 使用python3,Chrome在ubuntu上安装Selenium Webdriver时出错 - Error while installing selenium webdriver on ubuntu, using python3, chrome 将chromedriver与Selenium结合使用时,如何更正超时错误? - While using the chromedriver with Selenium, how do I correct a timeout error? 如何使用 Python 避免 Selenium Webdriver 中的 SSL 认证错误? - How to avoid SSL certification error in Selenium Webdriver using Python? 使用无头 chrome webdriver 时出现超时异常错误 - timeout exception error on using headless chrome webdriver 使用带有 Python 的 Selenium Webdriver 在 Headless chrome 浏览器上运行脚本时发生超时错误 - Timeout Error occurred When run a script on Headless chrome browser by using Selenium Webdriver with Python 如何使用 selenium + chrome webdriver + python 忽略警报? - How do I ignore an alert using selenium + chrome webdriver + python? 将 Selenium Chrome Webdriver 与 python 一起使用时出错 - Error using Selenium Chrome Webdriver with python AttributeError: module 'selenium.webdriver.chrome.webdriver' has no attribute 'Chrome' 错误使用 Selenium ChromeDriver 和 Chrome - AttributeError: module 'selenium.webdriver.chrome.webdriver' has no attribute 'Chrome' error using Selenium ChromeDriver and Chrome
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM