当使用Chrome驱动程序时,我在Selenium中遇到了以下问题

当使用Chrome驱动程序时,我在Selenium中遇到了以下问题,selenium,Selenium,错误: 我无法在Selenium中使用Chrome驱动程序打开任何站点。写了一些小代码,但不起作用 代码: 我认为您的操作系统版本和chrome驱动程序不兼容,即下载相同的版本,如两个版本的32位或两个版本的64位。将您的chrome版本降级为32位,这将解决问题 您使用的是哪个chrome版本? Chrome驱动程序2.20适用于Chrome版本43-48 如果你的chrome版本是最新的-我假设版本是60或61 你会得到这个错误,我想:D你使用哪个jar我认为你的操作系统版本和chrome驱

错误:

我无法在Selenium中使用Chrome驱动程序打开任何站点。写了一些小代码,但不起作用

代码:


我认为您的操作系统版本和chrome驱动程序不兼容,即下载相同的版本,如两个版本的32位或两个版本的64位。

将您的chrome版本降级为32位,这将解决问题

您使用的是哪个chrome版本? Chrome驱动程序2.20适用于Chrome版本43-48 如果你的chrome版本是最新的-我假设版本是60或61
你会得到这个错误,我想:D

你使用哪个jar我认为你的操作系统版本和chrome驱动程序不兼容,即下载相同的版本,如32位或64位。我使用的是chrome版本-60,使用的是chromedriver\u win32.zip驱动程序。但是我在哪里可以找到这个版本的驱动程序?正如本网站所说,Chromedriver没有单独的64位版本。你能帮我解决这个问题吗?一个简单的chrome驱动程序谷歌搜索就会得到结果。。。但是现在你可以下载最新版本->2.32了,不用担心这一点。。对于chrome,可以使用32位
Starting ChromeDriver 2.20.353145 (343b531d31eeb933ec778dbcf7081628a1396067) on port 40734
Only local connections are allowed.
Exception in thread "main" org.openqa.selenium.remote.UnreachableBrowserException: Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure.
Build info: version: '2.44.0', revision: '76d78cf', time: '2014-10-23 20:03:00'
package newproject;

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

public class testchrome {

    public static void main(String[] args) {
        System.setProperty("webdriver.chrome.driver", "D:\\selenium\\chromedriver.exe");
        WebDriver  driver = new ChromeDriver();
        driver.get("http://toolsqa.wpengine.com/automation-practice-form/");