[英]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.