【发布时间】:2016-10-21 12:34:31
【问题描述】:
我对 Selenium WebDriver 有一些问题。 我正在使用最新的 firefox 版本(47.0)并绑定使用最后一个 Selenium-Server-standalone-2.53.0.jar 但是当我使用以下代码使用此版本时:
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
public class Test {
public static void main(String[] args) {
WebDriver driver = new FirefoxDriver();
firefox 无法打开 我收到消息说有问题,我可以调试 firefox。
当我尝试使用 selenium-server-standalone-2.44.0.jar 时,firefox 窗口会打开,但它不是空白的,也不会转到我想要的一侧,例如 driver.get("https://www.google.com" );
我收到以下错误:
org.openqa.selenium.firefox.NotConnectedException:无法连接 45000 毫秒后在端口 7055 上托管 127.0.0.1。火狐。
【问题讨论】:
标签: java firefox selenium-webdriver