简体   繁体   English

在python中使用Selenium的退出函数时发生Firefox错误

[英]Firefox error occurs when use quit function of selenium in python

I'm trying to run a python script that imports selenium (using firefox browser). 我正在尝试运行一个导入硒的python脚本(使用Firefox浏览器)。 I tried close() .. but it's not working.. window remains the same after the script I want to close firefox window, so I use driver.quit() and it succeeded to close the window, but it gives me an error like (I tried to attach an image, but I failed... so will just provide a text that error window contains) 我尝试了close() ..但它不起作用..在我要关闭Firefox窗口的脚本之后,window窗口保持不变,所以我使用driver.quit()成功关闭了该窗口,但它给了我一个错误(我尝试附加图像,但失败了...所以只提供错误窗口包含的文本)

The exception Breakpoint A breakpoint has been reached. 断点异常已达到断点。 (0x80000003) occurred in the application at location 0x73xe9ec83. (0x80000003)发生在应用程序中的位置0x73xe9ec83。

Click on OK to terminate the program 单击确定终止程序

And I think there are some people go through the same problem but can't find a solution.... https://github.com/mozilla/geckodriver/issues/375 而且我认为有些人会遇到相同的问题,但是找不到解决方案。... https://github.com/mozilla/geckodriver/issues/375

It's a known Firefox/geckodriver issue with quitting driver, see here for more details. 这是已知的Firefox / geckodriver问题,退出了驱动程序,有关更多详细信息,请参见此处

It appears in some FF versions, some say it's fixed, some say it's not. 它出现在某些FF版本中,有些人说它是固定的,有些人说不是。 I couldn't find better solution for this so I switched on 'old' Firefoxdriver and FF v47.0.2 which works fine. 我找不到更好的解决方案,所以我打开了“旧的” Firefoxdriver和FF v47.0.2,效果很好。

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

相关问题 “Firefox意外退出。”在Python中运行基本的Selenium脚本时 - “Firefox quit unexpectedly.” when running basic Selenium script in Python Python Selenium-[错误5]尝试退出浏览器实例时拒绝访问 - Python Selenium - [Error 5] Access is denied when trying to quit a browser instance Python selenium 尝试启动时出错 firefox - Python selenium error when trying to launch firefox 如果设置了firefox_profile,则python selenium driver.quit()无法退出firefox浏览器 - python selenium driver.quit() can not quit firefox browser if firefox_profile setted Python:当出现错误中断程序时如何退出递归 function - Python: How to quit a recursive function when an error arises interrupting the program Python Selenium 无头 state 时发生错误? - Python Selenium error occurs while in headless state? 在python virtualenv中使用pip安装scrapy时发生错误 - Error occurs when Install scrapy in python virtualenv use pip 使用Python在Firefox中打开Webdriver时Selenium服务对象错误 - Selenium Service Object Error when opening Webdriver with Firefox in Python 发生错误时执行python - Execute when error occurs python 如何使用 Python 退出通过 GeckoDriver 和 Selenium 启动的所有 Firefox 进程 - How to quit all the Firefox processes which gets initiated through GeckoDriver and Selenium using Python
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM