Selenium Webdriver 3.0.0-beta3无法与浏览器交互

Selenium Webdriver 3.0.0-beta3无法与浏览器交互,selenium,selenium-webdriver,geckodriver,Selenium,Selenium Webdriver,Geckodriver,我正在从事selenium自动化。今天我更新了我的pom文件,使其具有最新的依赖项 <dependency> <groupId>org.seleniumhq.selenium</groupId> <artifactId>selenium-java</artifactId> <version>3.0.0-beta3</version> </depende

我正在从事selenium自动化。今天我更新了我的pom文件,使其具有最新的依赖项

<dependency>
        <groupId>org.seleniumhq.selenium</groupId>
        <artifactId>selenium-java</artifactId>
        <version>3.0.0-beta3</version>
    </dependency>
    <dependency>
        <groupId>org.seleniumhq.selenium</groupId>
        <artifactId>selenium-firefox-driver</artifactId>
        <version>3.0.0-beta3</version>
    </dependency>
这是我今天早上在64位机器上将jre和jdk更改为32位后遇到的新错误

org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output:
,"syncGUID":"qLUZlH20Y8gq","location":"app-global","version":"48.0.2","type":"theme","internalName":"classic/1.0","updateURL":null,"updateKey":null,"optionsURL":null,"optionsType":null,"aboutURL":null,"icons":{"32":"icon.png","48":"icon.png"},"iconURL":null,"icon64URL":null,"defaultLocale":{"name":"Default","description":"The default theme.","creator":"Mozilla","homepageURL":null,"contributors":["Mozilla Contributors"]},"visible":true,"active":true,"userDisabled":false,"appDisabled":false,"descriptor":"C:\\Program Files (x86)\\Mozilla Firefox\\browser\\extensions\\{972ce4c6-7e08-4474-a285-3208198ce6fd}.xpi","installDate":1475694945987,"updateDate":1475694945987,"applyBackgroundUpdates":1,"skinnable":true,"size":21905,"sourceURI":null,"releaseNotesURI":null,"softDisabled":false,"foreignInstall":false,"hasBinaryComponents":false,"strictCompatibility":true,"locales":[],"targetApplications":[{"id":"{ec8030f7-c20a-464f-9b0e-13a3a9e97384}","minVersion":"48.0.2","maxVersion":"48.0.2"}],"targetPlatforms":[],"seen":true}
1475767803924   addons.xpi  DEBUG   getModTime: Recursive scan of {972ce4c6-7e08-4474-a285-3208198ce6fd}

这就是
Selenium3
Mozilla-Firefox
版本之间的不兼容问题

实际上,
Selenium3
支持像其他驱动程序一样启动可执行文件

并使用
webdriver.gecko.driver
Syetem
属性设置为指向下载可执行geckodriver位置,如下所示:-

System.setProperty("webdriver.gecko.driver", "path/to/geckodriver");

WebDriver driver = new FirefoxDriver();

我在前面添加了gecko驱动程序,还添加了所需的功能;我的同事让我将jre更改为32位,这在他的机器上运行良好。我这样做了,现在我得到了不同的错误。对于chrome,它启动浏览器,传递url,然后不与元素交互。It failsOk,你能分享你的试用代码吗?你是如何初始化webdriver的,这就是为什么我可以检查问题出在哪里??
System.setProperty("webdriver.gecko.driver", "path/to/geckodriver");

WebDriver driver = new FirefoxDriver();