错误信息1:

FAILED CONFIGURATION: @BeforeClass setUp
java.lang.RuntimeException: Could not start Selenium session: Failed to start new browser session: Unable to delete file C:\Users\ADMINI~1\AppData\Local\Temp\customProfileDir9cf2c422885b4bb683e8f836a80a58be\parent.lock

原因:ff3.6与selenium1.0.1不兼容,服务器端使用selenium1.0.2以上的版本即可

错误信息2:

java.lang.RuntimeException: Could not start Selenium session: Failed to start new browser session: java.lang.RuntimeException: Firefox 3 could not be found in the path!
Please add the directory containing ''firefox.exe'' to your PATH environment
variable, or explicitly specify a path to Firefox 3 like this:
*firefox3c:\blah\firefox.exe

java.lang.RuntimeException: Could not start Selenium session: Failed to start new browser session: org.openqa.selenium.server.browserlaunchers.InvalidBrowserExecutableException: The specified path to the browser executable is invalid.

原因:找不到FF,不能打开浏览器
解决:1、把ff重新安装一次,安装路径默认,不要修改
            2、在脚本中增加详细的浏览器绝对路径地址:

selenium = new DefaultSelenium("localhost", 4444, "*firefox D:\Program Files\Mozilla Firefox\firefox.exe","http://istock.jrj.com.cn/");

Selenimu运行脚本时遇到的与FF浏览器相关问题小结相关推荐

  1. 运行脚本时用SPOOL保存运行结果的问题

    很多人都遇到过这样的情况,在sqlpluws中运行脚本时用SPOOL保存运行结果, 但SPOOL每次都将原来的文件覆盖了, 目前的Oracle10g就没这个问题了,示例如下: e:>sqlplu ...

  2. linux 设置变量在脚本之外可用,linux – 在ssh上运行脚本时,环境变量不可用

    假设我有两个主机:A和B,用户a和b. B是安装了Cygwin的 Windows机器,如果这很重要的话. B被配置为从A到SSH访问而没有密码(它包含A的公共RCA密钥),因此我可以通过以下方式从A运 ...

  3. PADS运行脚本出现“Active X Automation:server could not be found”

    在以前用PADS运行脚本时好好的,然后过了一段时间后再用PADS 运行脚本出现 "ActiveX Automation: server could not be found. 是不是摸不着头 ...

  4. ubuntu 运行脚本发现 source: not found

    ubuntu 运行脚本发现 source: not found 起因: 今天运行脚本时发现: source:not found ECHO:not found 在bin/bash即命令行里运行sourc ...

  5. 命令行运行Python脚本时传入参数的三种方式

    三种常用的方式 如果在运行python脚本时需要传入一些参数,例如gpus与batch_size,可以使用如下三种方式. python script.py 0,1,2 10 python script ...

  6. linux运行时命令找不到,linux - 在运行Bash脚本时找不到命令,但是在直接运行命令时有效 - 堆栈内存溢出...

    我一直在使用letencrypt为我的网站生成SSL证书,更具体地说是letencrypt_webfaction. 当我在项目中运行此命令时,它可以工作 letsencrypt_webfaction ...

  7. linux里docker镜像mysql运行sql脚本时出现Failed to open file ‘/home/mydatabase.sql‘, error: 2的解决

    linux里docker镜像mysql运行sql脚本时出现Failed to open file '/home/mydatabase.sql', error: 2的解决 此文章的前提是已经把sql文件 ...

  8. 解决运行时提示系统禁止运行脚本

    项目场景: 我之前用的运行命令都是npm 现在考虑到yar似乎优势更多,Yarn 缓存了每个下载过的包,所以再次使用时无需重复下载. 同时利用并行下载以最大化资源利用率,因此安装速度更快. 超级安全. ...

  9. vba mysql 自动化错误_在Excel中运行VBA脚本时出现自动化错误

    在Excel 2007中运行VBA代码时出现自动化错误.我尝试连接到远程SQL Server数据库并将数据从Excel加载到SQL Server.在Excel中运行VBA脚本时出现自动化错误 我得到的 ...

最新文章

  1. React学习实例总结,包含yeoman安装、webpack构建
  2. 1.12 总结-深度学习第四课《卷积神经网络》-Stanford吴恩达教授
  3. ITK:将矢量图像投射为另一种类型
  4. 基于NFS实现lamp的负载均衡之二: 部署NFS服务器
  5. 洛谷——P1478 陶陶摘苹果(升级版)
  6. Android基础知识点的整理3
  7. Android的 EditText的inputType类型
  8. seafile Windows MySQL_seafile4.3.1 + windows 2012 server +mysql 部署记录(3)
  9. 用window.showModalDialog()实现DIV模式弹出窗口
  10. StringUtils简单判断字符串是否为null或者空字符串
  11. 如何扩展/删除swap分区
  12. 介绍几款最好使用的模拟器怎么下载。
  13. 部分 MP4 视频在谷歌浏览器无法播放
  14. html圆圈男女,html 圆形符号
  15. 服务器系统2008恢复,win2003升级为win2008、win2012保留数据重装恢复数据说明
  16. Hibernate(八):检索策略
  17. Cisco Vpn的安装过程
  18. java下载pdf_java实现文件下载..pdf
  19. CAD打印怎么布满图纸?
  20. Stata实证:一键显著代码免费教程,拯救你的论文

热门文章

  1. python中parse的用法
  2. Android MQTT消息推送全面解析
  3. redis课件总结.
  4. antdv中时间选择器a-range-picker中英文混杂
  5. Android录音权限被禁解决方案
  6. 使用miniblink 在程序中嵌入浏览器
  7. 中原粮仓·河南2020年“粮”情解读
  8. 为了庆祝双十一提前到来的随笔 2020-10-30
  9. 200人面试经验,都在这里了
  10. k8s docker空间使用分析与清理