1. selenium ide录制脚本 导入selenium rc java脚本
  2. 新建java项目。导入selenium-server-standalone-xxx.jar包    不需要其他的jar包 http://selenium-release.storage.googleapis.com/index.html selenium remote control java环境搭建与运行
  3. 启动服务:java -jar selenium-server-standalone-xxx.jar 一定要启动不能退出。
  4. 写main方法 运行。
  5. 坑:明确浏览器地址:写绝对地址:"*firefox C:\\Program Files (x86)\\Mozilla Firefox\\firefox.exe"                                                           其他问题查看:http://blog.csdn.net/u011159607/article/details/53317489                                                                                                  由于录制的脚本运行较快有可能开不见效果,代码中插入用显示等待  thread.sleep();                       

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-08
  • 2021-07-12
  • 2021-11-15
猜你喜欢
  • 2021-04-29
  • 2021-11-01
  • 2021-06-09
  • 2021-06-15
  • 2021-06-12
  • 2021-11-20
相关资源
相似解决方案