升级到Selenium 3.0.1打印错误消息

时间:2016-11-04 23:58:55

标签: java selenium selenium-grid

我正在使用最新版本的driver.exe运行最新版本的chrome和firefox。打开创建新实例后,我收到此错误:

  

2016年11月4日下午7:46:21 org.openqa.selenium.remote.ProtocolHandshake createSession   信息:尝试双方言会议,假设Postel的法律在远程端是正确的   2016年11月4日下午7:46:23 org.openqa.selenium.remote.ProtocolHandshake createSession   信息:检测到的方言:OSS

这是不好的,因为当我运行我的回归测试套件时,它会在我的测试中途提供无法访问的浏览器异常,这会跳过我的所有测试。我不能永远留在3.0.0.beta2。

示例代码:

package stackoverflow;

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;

public class Test {


    public static void main(String[] args) throws Exception {
        System.setProperty("webdriver.chrome.driver","C:\\path-to webdriver\\chromedriver.exe");
        WebDriver driver=new ChromeDriver();
        driver.get("https://mail.google.com");
    }
}

0 个答案:

没有答案