虽然firefox实例已打开但未处理目标URL,但webdriver get URL无效

时间:2016-11-16 13:07:00

标签: selenium automation webdriver

package com.Angular;

import org.openqa.selenium.WebDriver; import org.openqa.selenium.firefox.FirefoxDriver;

公共类计算器{

public static void main(String[] args) {
    // TODO Auto-generated method stub

    System.setProperty("webdriver.gecko.driver","D:\\geckodriver-v0.11.1-win64\\geckodriver.exe");
    WebDriver driver = new FirefoxDriver();
    driver.get("http://www.facebook.com");
}

}

0 个答案:

没有答案