Selenium2Java自动化测试实战读书笔记(一)

来源:互联网 发布:程序员跳槽国企 编辑:程序博客网 时间:2024/04/29 16:25

1.运行本书第一个自动化脚本示例碰到的报错

1.1 Unable to create new  remote session     

1.2 [Child][MessageChannel::SendAndWait] Error: Channel error: cannot send/recv


这种报错基本是因为firefox,selenium,还有geckodriver版本不一致导致,暂时碰到可以用的组合是geckodriver-v0.13.0-win64.zip,selenium-server-standalone-3.0.1.jar,还有firefox47.0.1


各firefox版本下载地址

http://ftp.mozilla.org/pub/firefox/releases/

各selenium jar包下载地址

http://selenium-release.storage.googleapis.com/index.html


2. 本书4.2.3 修改maven的dependencies后,IntelliJ不自动更新包,要点击Maven Project的刷新按钮


0 0