mac selenium firefox-java-2.53.0 最高支持到哪个版本的Firefox

selenium2.48+Firefox42报错,是不兼容吗
[问题点数:40分]
selenium2.48+Firefox42报错,是不兼容吗
[问题点数:40分]
不显示删除回复
显示所有回复
显示星级回复
显示得分回复
只显示楼主
匿名用户不能发表回复!|
每天回帖即可获得10分可用分!小技巧:
你还可以输入10000个字符
(Ctrl+Enter)
请遵守CSDN,不得违反国家法律法规。
转载文章请注明出自“CSDN(www.csdn.net)”。如是商业用途请联系原作者。Use Selenium WebDriver 2.53.1 with Firefox 47.0.1 - 推酷
Use Selenium WebDriver 2.53.1 with Firefox 47.0.1
TL;DR Upgrade to Firefox 47.0.1 and use Selenium WebDriver 2.53.1 (locally at the moment) to use the
FirefoxDriver
I suspect this will be a fairly short lived post since Selenium WebDriver 2.53.1 will be in maven central soon. But longer term this post will act as an example of how to use a version of Selenium WebDriver that you have downloaded, without it being present in maven central repositories.
As per this tweet by
Java 2.53.1 to work with Firefox 47.0.1. Get it at
. A release to Maven Central will happen later.
— Jim Evans (@jimevansmusic)
Hooray. Selenium WebDriver 2.53.1 is once more compatible with `FirefoxDriver`.
I downloaded selenium-server-standalone-2.53.1.jar from
And updated Firefox 47.0 to Firefox 47.0.1
Since this is a temporary hack, until 2.53.1 becomes available in maven, I just added the jar file to my downloads folder and amended the pom.xml to use, as a local dependency, the downloaded version:
&dependency&
&groupId&org.seleniumhq.selenium&/groupId&
&artifactId&selenium-java&/artifactId&
&version&2.53.0&/version&
&/dependency&
&dependency&
&groupId&selenium_2_53_1&/groupId&
&artifactId&com.seleniumhq.selenium_2_53_1 &/artifactId&
&version&2.53.1&/version&
&scope&system&/scope&
&systemPath&
C:/Users/Alan/Downloads/selenium-2.53.1/selenium-server-standalone-2.53.1.jar
&/systemPath&
&/dependency&
Essentially I created a dependency on a local file in the system, rather than from the maven repo. There are a bunch of ways of making 2.53.1 available to maven locally, but this is the approach I tend to fall back into, because I’m usually using it for quick hacks.
When Selenium 2.53.1 is available in maven I won’t need the systemPath dependency. I’ll just un-comment back&the Selenium 2.53.0 dependency, amend it to 2.53.1, and remove the `systemPath` dependency.
You could clearly add this into your resources or wherever else you want to store it. You could also add it into a local maven repo – see related links below.
I also updated from firefox 47.0 to 47.0.1
Note: You need to update both Firefox to 47.0.1 and Selenium WebDriver to 2.53.1
Then your test code should run as normal, simply by instantiating
FirefoxDriver
When Selenium WebDriver 2.53.1 is available in maven then you won’t need the local pom.xml hack.
Thanks to the Selenium and Mozilla team for all their work involved in fixing this.
Remember you can also: drop down to Firefox 45 Extended Support Edition, Use portable Firefox, Use the Marionette/GeckoDriver, see the following blog posts for more details:
已发表评论数()
请填写推刊名
描述不能大于100个字符!
权限设置: 公开
仅自己可见
正文不准确
标题不准确
排版有问题
主题不准确
没有分页内容
图片无法显示
视频无法显示
与原文不一致你好selenium ide支持火狐什么版本,我下载的最新27.0和12.1、5.0.1等版本都不支持呢?_百度知道web自动化测试之Selenium(Java)(2)
环境搭建(Selenium+Java)
(在搭建环境的时候也在网上查了许多资料,但是都没有系统的说清整个安装过程,最后还是自己慢慢研究安装起来的),所以还是先系统总结下环境搭建前需要下载的资料:
&&& 下载地址:
&&& JDK(Java Development Kit) 是Java 语言的软件开发工具包(SDK)。提供了Java的开发环境和运行环境。
&& & 下载地址:
Selenium:selenium-java-2.39.0.zip
&&&& 下载地址:
selenium-server-standalone-2.47.1
&&& 下载地址:
selenium IDE
&&& 下载地址:
&&&& 一个Firefox插件,可以录制用户的基本操作,生成测试用例。随后可以运行这些测试用例在浏览器里回放,可将测试用例转换为其他语言的自动化脚本。
(Remark:个人觉得对于初学者,还是有必要安装IDE的,可以熟悉下基本的代码结构,元素定位)
&FireFox浏览器
&&& 下载地址:
& && The mostpopular and powerful web development tool(会成为日后写测试案例的助手),可以在Firefox的附加插件中找到,并安装。
&&&& 至于安装方法,很多资料已经讲得很详细了,这里就不多介绍了,主要介绍JDK安装,其他简单介绍。
1. JDK安装
Step1 :选择需要的额JDK版本下载:
Step 2: 双击jdk.exe,根据提示安装即可。安装完成后,需要在系统变量中新建2个环境变量:右键&computer&Propertites&Advanced system settings,如下图所示:
Step 3: 新建环境变量:
&&&&&&&&&&&&&&&&&&& JAVA_HOME:变量值为C:\Program&Files\Java\jdk1.8.0(自己电脑JDK的安装路径);
&&&&&&&&&&&&&&&&&&& CLASSPATH:变量值为&.;%JAVA_HOME%\%JAVA_HOME%\lib\tools.jar(加.表示当前路径)
Step 4: 修改已有变量Path:
&&&&&&&&&&&&&&&&&&&& 在变量值最后添加数;%JAVA_HOME%\%JAVA_HOME%\jre\
Step 5:测试JDK安装成功
在DOS下输入命令:javac,显示如下即安装成功:
2.Eclipse安装
Eclipse不需要安装,下载之后直接点击.exe运行即可:
3.Selenium:selenium-java-2.39.0.zip
下载之后减压即可,其中包含四部分(之后建project的时候需要用):
4.selenium-server-standalone-2.47.1
不需要安装(之后建project需要用)。
5.selenium IDE
下载并安装Firefox之后,在附件组件中搜索安装即可:
安装同Selenium IDE.
以上Selenium+java的环境基本搭建成功.
参考知识库
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
访问:602次
排名:千里之外}

我要回帖

更多关于 selenium2.53支持火狐 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信