在使用壁虎启动浏览器时需要帮助

时间:2019-03-27 06:05:31

标签: gecko

最近,我已经升级了最新版本的firefox 66.0.1,并下载了最新版本的gecko v0.24.0,当我运行代码时,它抛出了以下错误消息,

1345334535291 mozrunner :: runner信息运行命令:“ C:\ Program Files \ Mozilla Firefox \ firefox.exe”“ -marionette”“ -foreground”“ -no-remote”“ -profile”“ C:\ Users \ AppData \ Local \ Temp \ rust_mozprofile.l4JdcKRVjttZ“ 134534665256949 addons.webextension.screenshots@mozilla.org警告正在加载扩展名“ screenshots@mozilla.org”:阅读清单:无效的扩展名权限:mozillaAddons 1534534347011 addons.webextension.screenshots@mozilla.org警告正在加载扩展名“ screenshots@mozilla.org”:阅读清单:无效的扩展名许可:resource://pdf.js/ 15534534567011 addons.webextension.screenshots@mozilla.org警告正在加载扩展名“ screenshots@mozilla.org”:正在读取清单:无效的扩展名许可:about:reader *

线程“ main” org.openqa.selenium.WebDriverException中的异常:连接被拒绝 构建信息:版本:'3.141.59',修订版本:'efty77d358',时间:'2018-11-14T08:17:03' 系统信息:主机:'KAR123',ip:'10 .10.10.1',操作系统名称:'Windows 8.1',os.arch:'x86',os.version:'6.3',java.version:'1.8.0_25 ' 驱动程序信息:driver.version:FirefoxDriver

远程堆栈跟踪:     在sun.reflect.NativeConstructorAccessorImpl.newInstance0(本机方法)处     在sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)     在sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)     在java.lang.reflect.Constructor.newInstance(Constructor.java:408)     在org.openqa.selenium.remote.W3CHandshakeResponse.lambda $ errorHandler $ 0(W3CHandshakeResponse.java:62)     在org.openqa.selenium.remote.W3CHandshakeResponse $$ Lambda $ 214 / 1472465.apply(未知来源)     在org.openqa.selenium.remote.HandshakeResponse.lambda $ getResponseFunction $ 0(HandshakeResponse.java:30)     在org.openqa.selenium.remote.HandshakeResponse $$ Lambda $ 209 / 26448682.apply(未知来源)     在org.openqa.selenium.remote.ProtocolHandshake.lambda $ createSession $ 0(ProtocolHandshake.java:126)     在org.openqa.selenium.remote.ProtocolHandshake $$ Lambda $ 210 / 31285860.apply(未知来源)     在java.util.stream.ReferencePipeline $ 3 $ 1.accept(ReferencePipeline.java:193)     在java.util.Spliterators $ ArraySpliterator.tryAdvance(Spliterators.java:958)     在java.util.stream.ReferencePipeline.forEachWithCancel(ReferencePipeline.java:126)     在java.util.stream.AbstractPipeline.copyIntoWithCancel(AbstractPipeline.java:529)     在java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:516)     在java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:502)     在java.util.stream.FindOps $ FindOp.evaluateSequential(FindOps.java:152)     在java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)     在java.util.stream.ReferencePipeline.findFirst(ReferencePipeline.java:464)     在org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:128)     在org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:74)     在org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:136)     在org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:83)     在org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:552)     在org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:213)     在org.openqa.selenium.remote.RemoteWebDriver。(RemoteWebDriver.java:131)     在org.openqa.selenium.firefox.FirefoxDriver。(FirefoxDriver.java:147)     在org.openqa.selenium.firefox.FirefoxDriver。(FirefoxDriver.java:125)     在com.koovs.qa.base.RoughWork.main(RoughWork.java:16)

public static void main(String [] args){

    System.setProperty("webdriver.gecko.driver","D:\\NewProject\\Test\\WorkSpace"
            + "\\Koovs\\drivers\\geckodriver\\geckodriver.exe");


    WebDriver driver=new FirefoxDriver();

    driver.get("https://www.google.com");

}

同样,我尝试运行相同的代码并启动了浏览器,并且在控制台中收到以下消息,

1345334535291 mozrunner :: runner信息运行命令:“ C:\ Program Files \ Mozilla Firefox \ firefox.exe”“ -marionette”“ -foreground”“ -no-remote”“ -profile”“ C:\ Users \ AppData \ Local \ Temp \ rust_mozprofile.OkRjrbg7PXYj“ 134534665256949 addons.webextension.screenshots@mozilla.org警告正在加载扩展名“ screenshots@mozilla.org”:阅读清单:无效的扩展名权限:mozillaAddons 1534534347011 addons.webextension.screenshots@mozilla.org警告正在加载扩展名“ screenshots@mozilla.org”:阅读清单:无效的扩展名许可:resource://pdf.js/ 15534534567011 addons.webextension.screenshots@mozilla.org警告正在加载扩展名“ screenshots@mozilla.org”:正在读取清单:无效的扩展名许可:about:reader * 1513236936856木偶信息在端口56511上侦听

[Child 15124,Chrome_ChildThread]警告:管道错误:109:文件z:/build/build/src/ipc/chromium/src/chrome/common/ipc_channel_win.cc,第332行 [Child 15124,Chrome_ChildThread]警告:管道错误:109:文件z:/build/build/src/ipc/chromium/src/chrome/common/ipc_channel_win.cc,第332行 [Parent 12700,Gecko_IOThread]警告:文件z:/build/build/src/ipc/chromium/src/base/process_util_win.cc,第166行 15536​​66937315此会话将忽略“木偶警告” TLS证书错误 2019年3月27日11:38:57 org.openqa.selenium.remote.ProtocolHandshake createSession INFO:检测到的方言:W3C

0 个答案:

没有答案