Selenium WebDriver 下 Firefox has stopped working

用selenium 的webdriver 和 firefox 浏览器做采集测试。运行了几个小时后,经常会出现 firefox has stopped working。 十分烦人

如下图所示:

解决方法:

WebDriver: Plugin Container for Firefox has stopped working.

https://code.google.com/p/selenium/issues/detail?id=3314

Found a solution:

Go to \\Program Files (x86)\Mozilla Firefox\

find plugin-container.exe

delete or rename it!

Cheers!

-----------------------------------------------------------

时间: 2024-08-27 23:53:02

Selenium WebDriver 下 Firefox has stopped working的相关文章

selenium - webdriver 下拉框处理select

针对<select>标签,可使用如下方法: select_by_value()   通过value值定位下拉选项 select_by_index()   通过下拉选项的索引定位,从0开始 select_by_visible_text()   通过text值定位 百度搜索下拉框,如下: 分别选择每页显示20条,10条,50条: 1 from selenium import webdriver 2 import time 3 from selenium.webdriver.support.sele

selenium webdriver下拉框的处理方式

1.下拉框有2种,1种为通过F12可以定位到整个下拉框,定位到的代码html为<select id="ctl00_MainContentPlaceHolder_NoticeManage1_ddlNoticeType" class="select" name="ctl00 $MainContentPlaceHolder$NoticeManage1$ddlNoticeType"><option value="0"

selenium webdriver 启动火狐、谷歌、IE浏览器及插件下载地址

各个浏览器步骤差不多,先下载驱动,解压后把 exe 文件放到 Python 目录下即可: 以IE浏览器为例: 1. 先确定 selenium 版本 打开 cmd,输入命令:pip show selenium,可以查看到版本号为3.141.0 2. 下载对应的 IE 浏览器驱动 下载地址:http://selenium-release.storage.googleapis.com/index.html,根据 selenium 对应版本进行下载: 选择32位或者64位下载: 下载并解压后,将其放到

python+selenium webdriver 如何处理table

Table对象是自动化测试中经常需要处理的对象.由于webdriver中没有专门的table类,所以我们需要简单的封装出一个易用易扩展的Table类来帮助简化代码 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59

selenium webdriver学习(八)------------如何操作select下拉框(转)

selenium webdriver学习(八)------------如何操作select下拉框 博客分类: Selenium-webdriver 下面我们来看一下selenium webdriver是如何来处理select下拉框的,以http://passport.51.com/reg2.5p这个页面为例.这个页面中有4个下拉框,下面演示4种选中下拉框选项的方法.select处理比较简单,直接看代码吧:) Java代码   import org.openqa.selenium.By; impo

[Python爬虫] Windows下Selenium自动访问Firefox和Chrome并实现搜索截图

前两篇文章介绍了安装,此篇文章算是一个简单的进阶应用吧!它是在Windows下通过Selenium+Python实现自动访问Firefox和Chrome并实现搜索截图的功能. [Python爬虫] 在Windows下安装PhantomJS和CasperJS及入门介绍(上) [Python爬虫] 在Windows下安装PIP+Phantomjs+Selenium 自动访问Firefox 可以参照前文安装Selenium环境,目前Selenium这个用于Web应用程序测试的工具支持的浏览器包括IE.

[乐意黎原创] 使用Selenium webdriver+Firefox浏览器来登录新浪微博

有个需求测试,需要用webdriver 登录到新浪微博,由于个人比较善长 Webdriver,于是采取了Webdriver+FireFox来实现. 配置环境 a. 必须首先在Eclipse里加载 selenium webdriver 包[[此处我导入的是 selenium-server-standalone-2.45.0.jar] b. 以及安装了 firefox 浏览器. 此篇文章中我用了本人的新浪微博地址来做测试,大家 可以更换为自己的新浪微博帐号和密码. 文中为部分主要的Java 代码.

pycharm最新版新建工程没导入本地包问题:module &#39;selenium.webdriver&#39; has no attribute &#39;Firefox&#39;

最新版的pycharm做了很大的改变,新建工程的时候,默认不导入本地的安装包,这就导致很多小伙伴踩坑了...明明已经pip安装过selenium了,但是却报AttributeError:module 'selenium.webdriver' has no attribute 'Firefox' 遇到问题 1.运行以下代码,执行后报错 2.这个代码很明显,webdriver下方都有姨妈红了,这种代码里面有姨妈红的,就不要运行了,肯定报错 解决办法 1.排查这个问题,首先确定selenium已经安装

Python+WebDriver 启动Firefox时使用profile

1.建立FireFox的profile 1.1 dos切换到Firefox的安装目录,例如:C:\Program Files\Mozilla Firefox 1.2 dos中执行命令firefor -p,弹出创建窗口(如下:),新增一个profile.此处建立在c:\xxx下 1.3 创建完成后,点击上图中的"启动Firefox",在c:\xxx下可以看见生成一些文件(最重要的貌似是cert8.db) 2.写一个测试脚本test.py,执行观察结果 2.1脚本如下: #coding=u