Java Selenium程序\u有效URL
我只是从硒开始 我制作了一个简单的java程序,可以打开url并打印文本 这是:Java Selenium程序\u有效URL,java,selenium,selenium-webdriver,Java,Selenium,Selenium Webdriver,我只是从硒开始 我制作了一个简单的java程序,可以打开url并打印文本 这是: import org.openqa.selenium.WebDriver; import org.openqa.selenium.firefox.FirefoxDriver; public class Webdriver_class { public static void main(String[] args) { WebDriver driver = new FirefoxDr
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
public class Webdriver_class
{
public static void main(String[] args)
{
WebDriver driver = new FirefoxDriver();
System.out.println("hello this is ajay");
driver.get("https://www.google.com");
System.out.println(driver.getTitle());
driver.close();
}
}
运行代码后,会显示URL无效。
甚至我已经添加了所有的库。请您帮助解决这个问题。您使用的是哪个版本的Firefox和Selenium?因为,这段代码适用于Selenium v2.53.1和FF v47.0.1。我使用的是-FF-v47.0.1和Eclipse版本:Mars.1 Release(4.5.1)。您使用的是哪个版本的Selenium?URL无效是什么意思??确切的例外是什么???