您好,我开始在intelliJ IDEA中使用带有Java的WebDriver.我使用Maven导入了Selenium,并使用Selenium网页中提供的代码添加了依赖项.我下载了geckodriver并更新了Windows路径.我开始编码,但我得到的输出在我看来是一个错误.有人可以帮我理解发生了什么吗?
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
public class firstTry {
public static void main (String [] args){
WebDriver driver = new FirefoxDriver();
driver.quit();
}
}
Run Code Online (Sandbox Code Playgroud)
Firefox打开和关闭没有问题,但在控制台中我有一个输出似乎是一个错误给我.如下:
1522649487586 geckodriver INFO geckodriver 0.20.0
1522649487598 geckodriver INFO Listening on 127.0.0.1:31435
1522649488194 mozrunner::runner INFO Running command: "C:\\Program Files\\Mozilla Firefox\\firefox.exe" "-marionette" "-profile" "C:\\Users\\Lolaika\\AppData\\Local\\Temp\\rust_mozprofile.0neo1vgzqEe7"
Unable to read VR Path Registry from C:\Users\Lolaika\AppData\Local\openvr\openvrpaths.vrpath
1522649490188 Marionette INFO Enabled via --marionette
Unable to read VR Path Registry from C:\Users\Lolaika\AppData\Local\openvr\openvrpaths.vrpath
Unable …Run Code Online (Sandbox Code Playgroud)