﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>BlogJava-每一天都是进步-随笔分类-selenium</title><link>http://blogjava.net/dieyaxianju/category/54822.html</link><description /><language>zh-cn</language><lastBuildDate>Fri, 17 Jul 2015 18:37:21 GMT</lastBuildDate><pubDate>Fri, 17 Jul 2015 18:37:21 GMT</pubDate><ttl>60</ttl><item><title>selenium录制是写的注释，java文件导入myeclipse乱码</title><link>http://www.blogjava.net/dieyaxianju/archive/2015/07/17/426291.html</link><dc:creator>碟雅闲居</dc:creator><author>碟雅闲居</author><pubDate>Fri, 17 Jul 2015 14:47:00 GMT</pubDate><guid>http://www.blogjava.net/dieyaxianju/archive/2015/07/17/426291.html</guid><wfw:comment>http://www.blogjava.net/dieyaxianju/comments/426291.html</wfw:comment><comments>http://www.blogjava.net/dieyaxianju/archive/2015/07/17/426291.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/dieyaxianju/comments/commentRss/426291.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/dieyaxianju/services/trackbacks/426291.html</trackback:ping><description><![CDATA[解决方案：<br />1.可以对单个文件改编码格式 右键》属性<br /><br /><font face="Helvetica">2 改变整个myEclipse工作空间的编码格式<span class="Apple-converted-space">&nbsp;</span><br style="text-align: left; widows: 2; text-transform: none; background-color: #ffffff; text-indent: 0px; font: 14px/25px Helvetica, Tahoma, Arial, sans-serif; white-space: normal; orphans: 2; letter-spacing: normal; color: #000000; word-spacing: 0px; -webkit-text-size-adjust: auto; font-size-adjust: none; font-stretch: normal; -webkit-text-stroke-width: 0px" /></font><span style="text-align: left; widows: 2; text-transform: none; background-color: #ffffff; text-indent: 0px; display: inline !important; font: 14px/25px Helvetica, Tahoma, Arial, sans-serif; white-space: normal; orphans: 2; float: none; letter-spacing: normal; color: #000000; word-spacing: 0px; -webkit-text-size-adjust: auto; font-size-adjust: none; font-stretch: normal; -webkit-text-stroke-width: 0px">&nbsp;&nbsp;&nbsp;<span class="Apple-converted-space">&nbsp;</span></span><br style="text-align: left; widows: 2; text-transform: none; background-color: #ffffff; text-indent: 0px; font: 14px/25px Helvetica, Tahoma, Arial, sans-serif; white-space: normal; orphans: 2; letter-spacing: normal; color: #000000; word-spacing: 0px; -webkit-text-size-adjust: auto; font-size-adjust: none; font-stretch: normal; -webkit-text-stroke-width: 0px" /><span style="text-align: left; widows: 2; text-transform: none; background-color: #ffffff; text-indent: 0px; display: inline !important; font: 14px/25px Helvetica, Tahoma, Arial, sans-serif; white-space: normal; orphans: 2; float: none; letter-spacing: normal; color: #000000; word-spacing: 0px; -webkit-text-size-adjust: auto; font-size-adjust: none; font-stretch: normal; -webkit-text-stroke-width: 0px">&nbsp;&nbsp;&nbsp; 1）&nbsp; myeclipse-&gt;window-&gt;preferences-&gt;General-&gt;workspaceTypes<span class="Apple-converted-space">&nbsp;</span></span><br style="text-align: left; widows: 2; text-transform: none; background-color: #ffffff; text-indent: 0px; font: 14px/25px Helvetica, Tahoma, Arial, sans-serif; white-space: normal; orphans: 2; letter-spacing: normal; color: #000000; word-spacing: 0px; -webkit-text-size-adjust: auto; font-size-adjust: none; font-stretch: normal; -webkit-text-stroke-width: 0px" /><span style="text-align: left; widows: 2; text-transform: none; background-color: #ffffff; text-indent: 0px; display: inline !important; font: 14px/25px Helvetica, Tahoma, Arial, sans-serif; white-space: normal; orphans: 2; float: none; letter-spacing: normal; color: #000000; word-spacing: 0px; -webkit-text-size-adjust: auto; font-size-adjust: none; font-stretch: normal; -webkit-text-stroke-width: 0px">&nbsp;&nbsp;&nbsp;<span class="Apple-converted-space">&nbsp;</span></span><br style="text-align: left; widows: 2; text-transform: none; background-color: #ffffff; text-indent: 0px; font: 14px/25px Helvetica, Tahoma, Arial, sans-serif; white-space: normal; orphans: 2; letter-spacing: normal; color: #000000; word-spacing: 0px; -webkit-text-size-adjust: auto; font-size-adjust: none; font-stretch: normal; -webkit-text-stroke-width: 0px" /><span style="text-align: left; widows: 2; text-transform: none; background-color: #ffffff; text-indent: 0px; display: inline !important; font: 14px/25px Helvetica, Tahoma, Arial, sans-serif; white-space: normal; orphans: 2; float: none; letter-spacing: normal; color: #000000; word-spacing: 0px; -webkit-text-size-adjust: auto; font-size-adjust: none; font-stretch: normal; -webkit-text-stroke-width: 0px">&nbsp;&nbsp;&nbsp; 2）&nbsp; 改变文本文件编码格式为utf-8<span class="Apple-converted-space"><br /><br />3 改变整个文件类型的编码格式<span class="Apple-converted-space">&nbsp;</span><br style="text-align: left; widows: 2; text-transform: none; background-color: #ffffff; text-indent: 0px; font: 14px/25px Helvetica, Tahoma, Arial, sans-serif; white-space: normal; orphans: 2; letter-spacing: normal; color: #000000; word-spacing: 0px; -webkit-text-size-adjust: auto; font-size-adjust: none; font-stretch: normal; -webkit-text-stroke-width: 0px" /><span style="text-align: left; widows: 2; text-transform: none; background-color: #ffffff; text-indent: 0px; display: inline !important; font: 14px/25px Helvetica, Tahoma, Arial, sans-serif; white-space: normal; orphans: 2; float: none; letter-spacing: normal; color: #000000; word-spacing: 0px; -webkit-text-size-adjust: auto; font-size-adjust: none; font-stretch: normal; -webkit-text-stroke-width: 0px">&nbsp;&nbsp;&nbsp;<span class="Apple-converted-space">&nbsp;</span></span><br style="text-align: left; widows: 2; text-transform: none; background-color: #ffffff; text-indent: 0px; font: 14px/25px Helvetica, Tahoma, Arial, sans-serif; white-space: normal; orphans: 2; letter-spacing: normal; color: #000000; word-spacing: 0px; -webkit-text-size-adjust: auto; font-size-adjust: none; font-stretch: normal; -webkit-text-stroke-width: 0px" /><span style="text-align: left; widows: 2; text-transform: none; background-color: #ffffff; text-indent: 0px; display: inline !important; font: 14px/25px Helvetica, Tahoma, Arial, sans-serif; white-space: normal; orphans: 2; float: none; letter-spacing: normal; color: #000000; word-spacing: 0px; -webkit-text-size-adjust: auto; font-size-adjust: none; font-stretch: normal; -webkit-text-stroke-width: 0px">&nbsp;&nbsp;&nbsp; 1）&nbsp; eclipse-&gt;window-&gt;preferences-&gt;General-&gt;Content Types<span class="Apple-converted-space">&nbsp;</span></span><br style="text-align: left; widows: 2; text-transform: none; background-color: #ffffff; text-indent: 0px; font: 14px/25px Helvetica, Tahoma, Arial, sans-serif; white-space: normal; orphans: 2; letter-spacing: normal; color: #000000; word-spacing: 0px; -webkit-text-size-adjust: auto; font-size-adjust: none; font-stretch: normal; -webkit-text-stroke-width: 0px" /><span style="text-align: left; widows: 2; text-transform: none; background-color: #ffffff; text-indent: 0px; display: inline !important; font: 14px/25px Helvetica, Tahoma, Arial, sans-serif; white-space: normal; orphans: 2; float: none; letter-spacing: normal; color: #000000; word-spacing: 0px; -webkit-text-size-adjust: auto; font-size-adjust: none; font-stretch: normal; -webkit-text-stroke-width: 0px">&nbsp;&nbsp;&nbsp;<span class="Apple-converted-space">&nbsp;</span></span><br style="text-align: left; widows: 2; text-transform: none; background-color: #ffffff; text-indent: 0px; font: 14px/25px Helvetica, Tahoma, Arial, sans-serif; white-space: normal; orphans: 2; letter-spacing: normal; color: #000000; word-spacing: 0px; -webkit-text-size-adjust: auto; font-size-adjust: none; font-stretch: normal; -webkit-text-stroke-width: 0px" /><span style="text-align: left; widows: 2; text-transform: none; background-color: #ffffff; text-indent: 0px; display: inline !important; font: 14px/25px Helvetica, Tahoma, Arial, sans-serif; white-space: normal; orphans: 2; float: none; letter-spacing: normal; color: #000000; word-spacing: 0px; -webkit-text-size-adjust: auto; font-size-adjust: none; font-stretch: normal; -webkit-text-stroke-width: 0px">&nbsp;&nbsp;&nbsp; 2）&nbsp; 找到要修改的文件的类型（JAVA,JSP等等），在下面有个Default encoding,在输入框中输入GBK 或UTF-8</span><br style="text-align: left; widows: 2; text-transform: none; background-color: #ffffff; text-indent: 0px; font: 14px/25px Helvetica, Tahoma, Arial, sans-serif; white-space: normal; orphans: 2; letter-spacing: normal; color: #000000; word-spacing: 0px; -webkit-text-size-adjust: auto; font-size-adjust: none; font-stretch: normal; -webkit-text-stroke-width: 0px" /><span style="text-align: left; widows: 2; text-transform: none; background-color: #ffffff; text-indent: 0px; display: inline !important; font: 14px/25px Helvetica, Tahoma, Arial, sans-serif; white-space: normal; orphans: 2; float: none; letter-spacing: normal; color: #000000; word-spacing: 0px; -webkit-text-size-adjust: auto; font-size-adjust: none; font-stretch: normal; -webkit-text-stroke-width: 0px">&nbsp;&nbsp;&nbsp;<span class="Apple-converted-space">&nbsp;</span></span><br style="text-align: left; widows: 2; text-transform: none; background-color: #ffffff; text-indent: 0px; font: 14px/25px Helvetica, Tahoma, Arial, sans-serif; white-space: normal; orphans: 2; letter-spacing: normal; color: #000000; word-spacing: 0px; -webkit-text-size-adjust: auto; font-size-adjust: none; font-stretch: normal; -webkit-text-stroke-width: 0px" /><span style="text-align: left; widows: 2; text-transform: none; background-color: #ffffff; text-indent: 0px; display: inline !important; font: 14px/25px Helvetica, Tahoma, Arial, sans-serif; white-space: normal; orphans: 2; float: none; letter-spacing: normal; color: #000000; word-spacing: 0px; -webkit-text-size-adjust: auto; font-size-adjust: none; font-stretch: normal; -webkit-text-stroke-width: 0px">&nbsp;&nbsp;&nbsp; 3）&nbsp; 点击Update<span class="Apple-converted-space">&nbsp;</span></span><br style="text-align: left; widows: 2; text-transform: none; background-color: #ffffff; text-indent: 0px; font: 14px/25px Helvetica, Tahoma, Arial, sans-serif; white-space: normal; orphans: 2; letter-spacing: normal; color: #000000; word-spacing: 0px; -webkit-text-size-adjust: auto; font-size-adjust: none; font-stretch: normal; -webkit-text-stroke-width: 0px" /><span style="text-align: left; widows: 2; text-transform: none; background-color: #ffffff; text-indent: 0px; display: inline !important; font: 14px/25px Helvetica, Tahoma, Arial, sans-serif; white-space: normal; orphans: 2; float: none; letter-spacing: normal; color: #000000; word-spacing: 0px; -webkit-text-size-adjust: auto; font-size-adjust: none; font-stretch: normal; -webkit-text-stroke-width: 0px">&nbsp;&nbsp;&nbsp;<span class="Apple-converted-space">&nbsp;</span></span><br style="text-align: left; widows: 2; text-transform: none; background-color: #ffffff; text-indent: 0px; font: 14px/25px Helvetica, Tahoma, Arial, sans-serif; white-space: normal; orphans: 2; letter-spacing: normal; color: #000000; word-spacing: 0px; -webkit-text-size-adjust: auto; font-size-adjust: none; font-stretch: normal; -webkit-text-stroke-width: 0px" /><span style="text-align: left; widows: 2; text-transform: none; background-color: #ffffff; text-indent: 0px; display: inline !important; font: 14px/25px Helvetica, Tahoma, Arial, sans-serif; white-space: normal; orphans: 2; float: none; letter-spacing: normal; color: #000000; word-spacing: 0px; -webkit-text-size-adjust: auto; font-size-adjust: none; font-stretch: normal; -webkit-text-stroke-width: 0px">&nbsp;&nbsp;&nbsp; 4）&nbsp; 点击OK<span class="Apple-converted-space">&nbsp;</span></span><br style="text-align: left; widows: 2; text-transform: none; background-color: #ffffff; text-indent: 0px; font: 14px/25px Helvetica, Tahoma, Arial, sans-serif; white-space: normal; orphans: 2; letter-spacing: normal; color: #000000; word-spacing: 0px; -webkit-text-size-adjust: auto; font-size-adjust: none; font-stretch: normal; -webkit-text-stroke-width: 0px" /><span style="text-align: left; widows: 2; text-transform: none; background-color: #ffffff; text-indent: 0px; display: inline !important; font: 14px/25px Helvetica, Tahoma, Arial, sans-serif; white-space: normal; orphans: 2; float: none; letter-spacing: normal; color: #000000; word-spacing: 0px; -webkit-text-size-adjust: auto; font-size-adjust: none; font-stretch: normal; -webkit-text-stroke-width: 0px">&nbsp;&nbsp;&nbsp;<span class="Apple-converted-space">&nbsp;</span></span><br style="text-align: left; widows: 2; text-transform: none; background-color: #ffffff; text-indent: 0px; font: 14px/25px Helvetica, Tahoma, Arial, sans-serif; white-space: normal; orphans: 2; letter-spacing: normal; color: #000000; word-spacing: 0px; -webkit-text-size-adjust: auto; font-size-adjust: none; font-stretch: normal; -webkit-text-stroke-width: 0px" /><span style="text-align: left; widows: 2; text-transform: none; background-color: #ffffff; text-indent: 0px; display: inline !important; font: 14px/25px Helvetica, Tahoma, Arial, sans-serif; white-space: normal; orphans: 2; float: none; letter-spacing: normal; color: #000000; word-spacing: 0px; -webkit-text-size-adjust: auto; font-size-adjust: none; font-stretch: normal; -webkit-text-stroke-width: 0px">&nbsp;&nbsp;&nbsp; 5）&nbsp; 重启eclipse<span class="Apple-converted-space"></span></span><br /></span></span><br style="text-align: left; widows: 2; text-transform: none; background-color: #ffffff; text-indent: 0px; font: 14px/25px Helvetica, Tahoma, Arial, sans-serif; white-space: normal; orphans: 2; letter-spacing: normal; color: #000000; word-spacing: 0px; -webkit-text-size-adjust: auto; font-size-adjust: none; font-stretch: normal; -webkit-text-stroke-width: 0px" /><span style="text-align: left; widows: 2; text-transform: none; background-color: #ffffff; text-indent: 0px; display: inline !important; font: 14px/25px Helvetica, Tahoma, Arial, sans-serif; white-space: normal; orphans: 2; float: none; letter-spacing: normal; color: #000000; word-spacing: 0px; -webkit-text-size-adjust: auto; font-size-adjust: none; font-stretch: normal; -webkit-text-stroke-width: 0px">&nbsp;&nbsp;&nbsp;<span class="Apple-converted-space">&nbsp;</span></span><br style="text-align: left; widows: 2; text-transform: none; background-color: #ffffff; text-indent: 0px; font: 14px/25px Helvetica, Tahoma, Arial, sans-serif; white-space: normal; orphans: 2; letter-spacing: normal; color: #000000; word-spacing: 0px; -webkit-text-size-adjust: auto; font-size-adjust: none; font-stretch: normal; -webkit-text-stroke-width: 0px" /><span style="text-align: left; widows: 2; text-transform: none; background-color: #ffffff; text-indent: 0px; display: inline !important; font: 14px/25px Helvetica, Tahoma, Arial, sans-serif; white-space: normal; orphans: 2; float: none; letter-spacing: normal; color: #000000; word-spacing: 0px; -webkit-text-size-adjust: auto; font-size-adjust: none; font-stretch: normal; -webkit-text-stroke-width: 0px">&nbsp;&nbsp;&nbsp; </span><br /><img src ="http://www.blogjava.net/dieyaxianju/aggbug/426291.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/dieyaxianju/" target="_blank">碟雅闲居</a> 2015-07-17 22:47 <a href="http://www.blogjava.net/dieyaxianju/archive/2015/07/17/426291.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>报错Could not start Selenium session</title><link>http://www.blogjava.net/dieyaxianju/archive/2015/07/17/426288.html</link><dc:creator>碟雅闲居</dc:creator><author>碟雅闲居</author><pubDate>Fri, 17 Jul 2015 13:53:00 GMT</pubDate><guid>http://www.blogjava.net/dieyaxianju/archive/2015/07/17/426288.html</guid><wfw:comment>http://www.blogjava.net/dieyaxianju/comments/426288.html</wfw:comment><comments>http://www.blogjava.net/dieyaxianju/archive/2015/07/17/426288.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/dieyaxianju/comments/commentRss/426288.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/dieyaxianju/services/trackbacks/426288.html</trackback:ping><description><![CDATA[错误信息： 
<p>java.lang.RuntimeException: Could not start Selenium session: Failed to start new browser session: java.lang.RuntimeException: java.lang.RuntimeException: Firefox could not be found in the path!<br />Please add the directory containing ''firefox.exe'' to your PATH environment<br />variable, or explicitly specify a path to Firefox like this:<br />*firefox c:\blah\firefox.exe<br />&nbsp;<img border="0" alt="" src="http://www.blogjava.net/images/blogjava_net/dieyaxianju/baocuo.png" width="1133" height="222" /><br />原因：找不到firefox（火狐不是默认安装位置自己换了位置的），不能打开浏览器<br />解决方案：<br />方法一：设置环境变量，将火狐的地址放进path变量中<br />方法二：将火狐的路径写进来，注意路径的\要用\\,其中一个\是转义的意思<br /><br />即下面的"*firefox"改为&nbsp;"*firefox D:\\study\\selenium\\Firefox\\firefox.exe"<img border="0" alt="" src="http://www.blogjava.net/images/blogjava_net/dieyaxianju/ff.png" width="808" height="382" /><br /><br /></p><img src ="http://www.blogjava.net/dieyaxianju/aggbug/426288.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/dieyaxianju/" target="_blank">碟雅闲居</a> 2015-07-17 21:53 <a href="http://www.blogjava.net/dieyaxianju/archive/2015/07/17/426288.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>启动Selenium测试服务器WARN-Failed to start：SocketListener000.0.0.0:4444</title><link>http://www.blogjava.net/dieyaxianju/archive/2015/07/17/426286.html</link><dc:creator>碟雅闲居</dc:creator><author>碟雅闲居</author><pubDate>Fri, 17 Jul 2015 13:13:00 GMT</pubDate><guid>http://www.blogjava.net/dieyaxianju/archive/2015/07/17/426286.html</guid><wfw:comment>http://www.blogjava.net/dieyaxianju/comments/426286.html</wfw:comment><comments>http://www.blogjava.net/dieyaxianju/archive/2015/07/17/426286.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/dieyaxianju/comments/commentRss/426286.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/dieyaxianju/services/trackbacks/426286.html</trackback:ping><description><![CDATA[<img border="0" alt="" src="http://www.blogjava.net/images/blogjava_net/dieyaxianju/启动seleniumRC测试服务器失败.png" width="677" height="442" /><br />启用selenium-server提示WARN-Failed to start：SocketListener000.0.0.0:4444<br />主要是因为已经有另外一个Selenium server 启动了，你可以查看是否有其他的selenium server正在运行,如果有请将其关闭；否则就是有另外的服务器在使用4444端口，请更换端口。<br />开始--运行--cmd 进入命令提示符 输入netstat -ano 即可看到所有连接的PID 之后在任务管理器中找到这个PID所对应的程序如果任务管理器中没有PID这一项,可以在任务管理器中选"查看"-"选择列" 
<p>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr> 经常，我们在启动应用的时候发现系统需要的端口被别的程序占用，如何知道谁占有了我们需要的端口，很多人都比较头疼，下面就介绍一种非常简单的方法，希望对大家有用</p>
<p>假如我们需要确定谁占用了我们的9050端口</p>
<p>1、Windows平台<br />在windows命令行窗口下执行：</p>
<div><pre style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: rgb(244,244,244); margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"> C:\&gt;netstat -aon|findstr <span style="color: rgb(0,96,128)">"9050"</span><br /> <br />TCP 127.0.0.1:9050 0.0.0.0:0 LISTENING 2016</pre></div>看到了吗，端口被进程号为2016的进程占用，继续执行下面命令： 
<div><pre style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: rgb(244,244,244); margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"> C:\&gt;tasklist|findstr <span style="color: rgb(0,96,128)">"2016"</span><br /> <br />tor.exe 2016 Console 0 16,064 K</pre></div>
<p>很清楚是，tor占用了9095端口<br />在这里，我们查看4444端口占用，如下图所示<br />口<img border="0" alt="" src="http://www.blogjava.net/images/blogjava_net/dieyaxianju/查看4444端口占用.png" width="650" height="162" /><br /></p>然后可以在任务管理器将javaw该进程结束<br />再重新启动，如下就成功了<br /><br /><img border="0" alt="" src="http://www.blogjava.net/images/blogjava_net/dieyaxianju/启动seleniumRC成功.png" width="662" height="305" /><br />2.linux平台<br />ps -efa|grep selenium<br />杀了该进程<br /><br /><br />遇到的错误:<br />
<p>java.lang.RuntimeException: Could not contact Selenium Server; have you started it on 'localhost:4444' ?<br />Read more at <a href="http://seleniumhq.org/projects/remote-control/not-started.html">http://seleniumhq.org/projects/remote-control/not-started.html</a><br />Connection refused: connect<br />&nbsp;at com.thoughtworks.selenium.DefaultSelenium.start(DefaultSelenium.java:104)<br />&nbsp;<br />原因：selenium server未启动，我把启动页面cmd关了<br />解决方案：启动selenium server：java -jar selenium-server-standalone-2.44.1.jar<br /></p><img src ="http://www.blogjava.net/dieyaxianju/aggbug/426286.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/dieyaxianju/" target="_blank">碟雅闲居</a> 2015-07-17 21:13 <a href="http://www.blogjava.net/dieyaxianju/archive/2015/07/17/426286.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>selenium录制时弹出意外错误</title><link>http://www.blogjava.net/dieyaxianju/archive/2015/07/17/426278.html</link><dc:creator>碟雅闲居</dc:creator><author>碟雅闲居</author><pubDate>Fri, 17 Jul 2015 07:14:00 GMT</pubDate><guid>http://www.blogjava.net/dieyaxianju/archive/2015/07/17/426278.html</guid><wfw:comment>http://www.blogjava.net/dieyaxianju/comments/426278.html</wfw:comment><comments>http://www.blogjava.net/dieyaxianju/archive/2015/07/17/426278.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/dieyaxianju/comments/commentRss/426278.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/dieyaxianju/services/trackbacks/426278.html</trackback:ping><description><![CDATA[There was an unexpected error. Msg: TypeError: insertedCommand.line is undefined<br />Url: chrome://selenium-ide/content/sourceView.js, line: 34, column: 7<br /><a href="&#109;&#97;&#105;&#108;&#116;&#111;&#58;&#83;&#111;&#117;&#114;&#99;&#101;&#86;&#105;&#101;&#119;&#46;&#112;&#114;&#111;&#116;&#111;&#116;&#121;&#112;&#101;&#46;&#114;&#111;&#119;&#73;&#110;&#115;&#101;&#114;&#116;&#101;&#100;&#64;&#99;&#104;&#114;&#111;&#109;&#101;&#58;&#47;&#47;&#115;&#101;&#108;&#101;&#110;&#105;&#117;&#109;&#45;&#105;&#100;&#101;&#47;&#99;&#111;&#110;&#116;&#101;&#110;&#116;&#47;&#115;&#111;&#117;&#114;&#99;&#101;&#86;&#105;&#101;&#119;&#46;&#106;&#115;&#58;&#51;&#52;&#58;&#56;">SourceView.prototype.rowInserted@chrome://selenium-ide/content/sourceView.js:34:8</a><br /><a href="&#109;&#97;&#105;&#108;&#116;&#111;&#58;&#69;&#100;&#105;&#116;&#111;&#114;&#46;&#112;&#114;&#111;&#116;&#111;&#116;&#121;&#112;&#101;&#46;&#97;&#100;&#100;&#67;&#111;&#109;&#109;&#97;&#110;&#100;&#64;&#99;&#104;&#114;&#111;&#109;&#101;&#58;&#47;&#47;&#115;&#101;&#108;&#101;&#110;&#105;&#117;&#109;&#45;&#105;&#100;&#101;&#47;&#99;&#111;&#110;&#116;&#101;&#110;&#116;&#47;&#101;&#100;&#105;&#116;&#111;&#114;&#46;&#106;&#115;&#58;&#56;&#53;&#56;&#58;&#53;">Editor.prototype.addCommand@chrome://selenium-ide/content/editor.js:858:5</a><br /><a href="&#109;&#97;&#105;&#108;&#116;&#111;&#58;&#69;&#100;&#105;&#116;&#111;&#114;&#46;&#112;&#114;&#111;&#116;&#111;&#116;&#121;&#112;&#101;&#46;&#97;&#112;&#112;&#101;&#110;&#100;&#87;&#97;&#105;&#116;&#70;&#111;&#114;&#80;&#97;&#103;&#101;&#84;&#111;&#76;&#111;&#97;&#100;&#64;&#99;&#104;&#114;&#111;&#109;&#101;&#58;&#47;&#47;&#115;&#101;&#108;&#101;&#110;&#105;&#117;&#109;&#45;&#105;&#100;&#101;&#47;&#99;&#111;&#110;&#116;&#101;&#110;&#116;&#47;&#101;&#100;&#105;&#116;&#111;&#114;&#46;&#106;&#115;&#58;&#56;&#56;&#53;&#58;&#55;">Editor.prototype.appendWaitForPageToLoad@chrome://selenium-ide/content/editor.js:885:7</a><br />Editor.prototype.onUnloadDocument/&lt;@chrome://selenium-ide/content/editor.js:662:5<img border="0" alt="" src="http://www.blogjava.net/images/blogjava_net/dieyaxianju/意外错误.png" width="1039" height="526" /><br /><br /><br />option&gt;options&gt;Formats&gt;Enviroment (有三个)都改成火狐firefox<br /><br /><img border="0" alt="" src="http://www.blogjava.net/images/blogjava_net/dieyaxianju/录制脚本错误.png" width="652" height="600" />&gt;<br /><br /><br /><br /><img src ="http://www.blogjava.net/dieyaxianju/aggbug/426278.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/dieyaxianju/" target="_blank">碟雅闲居</a> 2015-07-17 15:14 <a href="http://www.blogjava.net/dieyaxianju/archive/2015/07/17/426278.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>selenium+java环境配置</title><link>http://www.blogjava.net/dieyaxianju/archive/2015/05/07/424927.html</link><dc:creator>碟雅闲居</dc:creator><author>碟雅闲居</author><pubDate>Thu, 07 May 2015 14:20:00 GMT</pubDate><guid>http://www.blogjava.net/dieyaxianju/archive/2015/05/07/424927.html</guid><wfw:comment>http://www.blogjava.net/dieyaxianju/comments/424927.html</wfw:comment><comments>http://www.blogjava.net/dieyaxianju/archive/2015/05/07/424927.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/dieyaxianju/comments/commentRss/424927.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/dieyaxianju/services/trackbacks/424927.html</trackback:ping><description><![CDATA[<div>1.下载Firefox浏览器<br />2.点击工具》附加组件》搜索selenium&nbsp;&nbsp; 然后安装Selenium IDE 2.4.0<br />3.将selenium-ide-2.4.0包里面的插件直接拖进火狐浏览器里面 <br />4.myeclipse配置selenium<br />&nbsp;&nbsp; a.准备selenium-java-2.33.0的包（版本不一定），里面有一些jar包<br />&nbsp; <img border="0" alt="" src="http://www.blogjava.net/images/blogjava_net/dieyaxianju/selenium-java包.png" width="495" height="139" /><br />b.新建一个Java Project<br />&nbsp; 将上面的四个文件拷贝到新建的project目录下面，也将selenium-server-standalone拷贝进去，然后刷新该工程目录<br />c.添加build path，项目目录右键--&gt;Build Path--&gt; config build path--&gt;Java Build Path--&gt;Libraries--&gt;Add JARs
<p>　　把libs文件夹下的jar包全部添加上，再添加selenium-java-2.33.0和selenium-java-2.33.0-srcs，selenium-server-standalone<br />d.添加完之后目录结构如下图，多了Referenced Libraries,这里就是上面那一步添加进去的jar包<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img border="0" alt="" src="http://www.blogjava.net/images/blogjava_net/dieyaxianju/添加jar包.png" width="410" height="273" /><br /><br /><br /></p><br /></div> <img src ="http://www.blogjava.net/dieyaxianju/aggbug/424927.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/dieyaxianju/" target="_blank">碟雅闲居</a> 2015-05-07 22:20 <a href="http://www.blogjava.net/dieyaxianju/archive/2015/05/07/424927.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>