MarionetteDriver打开浏览器并挂起,但不会出错

时间:2016-06-16 21:24:00

标签: selenium firefox automation firefox-marionette

这是我运行测试时获得的唯一输出。我是否需要在构建路径或链接资源中的某处添加geckodriver.exe?

控制台输出:

Jun 16, 2016 4:17:38 PM io.github.bonigarcia.wdm.BrowserManager getLatest
INFO: Latest version of [wires, geckodriver] is 0.8.0
C:\Users\aconte/.m2/repository/webdriver/geckodriver\0.8.0/geckodriver-v0.8.0-win32.zip
Jun 16, 2016 4:17:38 PM io.github.bonigarcia.wdm.BrowserManager exportDriver
INFO: Exporting webdriver.gecko.driver as C:\Users\aconte\.m2\repository\webdriver\geckodriver\win32\0.8.0\geckodriver.exe
<- |50:{"applicationType":"gecko","marionetteProtocol":3}|
54:{"name":"getMarionetteID","to":"root","parameters":{}}

这是我设置驱动程序的代码。

FirefoxProfile ffprofile = new FirefoxProfile();
            ffprofile.setEnableNativeEvents(true);
            ffprofile.setPreference("xpinstall.signatures.required", false);
            driver = new MarionetteDriver(ffprofile);

0 个答案:

没有答案