Selenium webdriver Chrome版本71.x未知错误:调用函数结果丢失';价值';
请不要将此问题标记为重复问题,因为其他解决方案不适用于我。 我使用AngularSelenium webdriver Chrome版本71.x未知错误:调用函数结果丢失';价值';,selenium-webdriver,protractor,selenium-chromedriver,e2e-testing,Selenium Webdriver,Protractor,Selenium Chromedriver,E2e Testing,请不要将此问题标记为重复问题,因为其他解决方案不适用于我。 我使用Angularv5.x并使用量角器进行E2E测试。但是在运行命令时 ng e2e-s假 它抛出了一个错误 Failed: unknown error: call function result missing 'value' (Session info: chrome=71.0.3578.98) (Driver info: chromedriver=2.24.417431 (9aea000394714d2fbb20850
v5.x
并使用量角器进行E2E测试。但是在运行命令时
ng e2e-s假
它抛出了一个错误
Failed: unknown error: call function result missing 'value'
(Session info: chrome=71.0.3578.98)
(Driver info: chromedriver=2.24.417431 (9aea000394714d2fbb20850021f6204f2256b9cf),platform=Windows NT 10.0.17134 x86_64)
Stack:
WebDriverError: unknown error: call function result missing 'value'
(Session info: chrome=71.0.3578.98)
(Driver info: chromedriver=2.24.417431 (9aea000394714d2fbb20850021f6204f2256b9cf),platform=Windows NT 10.0.17134 x86_64)
at Object.checkLegacyResponse (F:\Commutatus\yop-v3\node_modules\selenium-webdriver\lib\error.js:639:15)
at parseHttpResponse (F:\Commutatus\yop-v3\node_modules\selenium-webdriver\http\index.js:538:13)
at client_.send.then.response (F:\Commutatus\yop-v3\node_modules\selenium-webdriver\http\index.js:472:11)
at ManagedPromise.invokeCallback_ (F:\Commutatus\yop-v3\node_modules\selenium-webdriver\lib\promise.js:1379:14)
at TaskQueue.execute_ (F:\Commutatus\yop-v3\node_modules\selenium-webdriver\lib\promise.js:2913:14)
at TaskQueue.executeNext_ (F:\Commutatus\yop-v3\node_modules\selenium-webdriver\lib\promise.js:2896:21)
at asyncRun (F:\Commutatus\yop-v3\node_modules\selenium-webdriver\lib\promise.js:2820:25)
at F:\Commutatus\yop-v3\node_modules\selenium-webdriver\lib\promise.js:639:7
at process._tickCallback (internal/process/next_tick.js:68:7)
我关注了GitHub上的问题,但运气不好!!!
我还从这个链接安装了最新的chrome驱动程序。解压缩并执行.exe
文件后,控制台窗口打开,提示此消息
启动ChromeDriver 2.45.615291
(ec3682e3c9061c10f26ea9e5cdcf3c53f3f74387)仅在端口9515上本地
允许连接
我再次运行了相同的命令,但不起作用。我还使用了
chromedriver--version
chromedriver的版本是v2.45
Chrome版本-71.0
Chrome驱动程序版本-2.45根据错误消息,它表明对webdriver(有线协议)的调用响应为空。我建议把你的chrome降级到70以下的稳定版本和兼容的chromedrive 当您共享控制台消息时:-
Starting ChromeDriver 2.45.615291 (ec3682e3c9061c10f26ea9e5cdcf3c53f3f74387) on port 9515 Only local connections are allowed.
这是控制台中红色的信息消息,您可以避免,在此之后,您的chrome会话意味着chrome窗口打开,如果您传递任何URL,它将重定向到该URL,如果在此之后出现错误,请与我们共享,因为我似乎没有任何问题您共享的日志消息在更新之前,之后是chromedriver of?@akshaypatil,它在update@YashwardhanPauranik你解决了这个问题吗?我尝试过前面提到的其他解决方案,但对我不起作用。提前谢谢。@AlfredoBazoLopez Non下面的解决方案对我有效。我所做的是,我已经将我的项目从Angular
v5.x
更新为最新的v7.x
(当时)。谢谢,@YashwardhanPauranik,这是为你做的吗?我不能这样做,因为我是QA,而不是项目的开发人员。我很生气,因为互联网上提供的解决方案中没有一个适合我。我正在一个真实的设备上测试它,尽管我使用的是chromedriver 84,但它似乎采用了旧版本:WebDriverError:unknown error:call function result缺少“value”(会话信息:chrome=84.0.4147.111)(驾驶员信息:chromedriver=2.28。455517@Akshay帕蒂尔。你的语言把我弄糊涂了。我无法理解你的意思suggesting@DebanjanB另外,您所指的解决方案的最后一条注释是“此解决方案不适用于v71.x
”。检查@YashwardhanPauranik您需要更新问题,并演示您的问题与dup标记的问题有何不同。为了记录在案,dup标记的讨论中得票最多的答案有107张得票,得票第二高的答案中有详细的解释。@DebanjanB但该解决方案没有解决问题最新的chrome版本,这就是为什么这个问题有点不同