【发布时间】:2019-06-11 07:33:02
【问题描述】:
请不要将此问题标记为重复,因为其他解决方案对我不起作用。
我正在使用 Angular v5.x 并使用 Protractor 进行 E2E 测试。但是在运行命令时。
ng e2e -s false
它抛出一个错误
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 上关注了this 问题,但没有运气!!!
我还通过此链接http://chromedriver.chromium.org/downloads 安装了 最新 chrome 驱动程序。解压并执行.exe 文件后,会打开一个控制台窗口,提示此消息
启动 ChromeDriver 2.45.615291 (ec3682e3c9061c10f26ea9e5cdcf3c53f3f74387) 在端口 9515 仅本地 允许连接。
我再次重新运行相同的命令,但没有工作。我也检查过使用
chromedriver --versionchromedriver的版本是v2.45。
Chrome 版本 - 71.0 Chrome 驱动程序版本 - 2.45
【问题讨论】:
-
您共享的日志消息是在更新 chromedriver 之前还是之后?
-
@akshaypatil 更新后
-
@YashwardhanPauranik 你解决了这个问题吗?我已经尝试过提到的其他解决方案,但它对我不起作用。提前致谢。
-
@AlfredoBazoLopez 以下解决方案中没有一个对我有用。我所做的是,我已将我的项目从 Angular
v5.x更新为最新的v7.x(当时)。 -
谢谢@YashwardhanPauranik,这对你有用吗?我不能这样做,因为我是 QA 而不是项目的开发人员。我很生气,因为互联网上提供的解决方案都不适合我。我正在真实设备中对其进行测试,虽然我使用的是 chromedriver 84,但它似乎采用的是旧版本:WebDriverError: unknown error: call function result missing 'value' (Session info: chrome=84.0.4147.111) (Driver信息:chromedriver=2.28.455517
标签: selenium-webdriver protractor selenium-chromedriver e2e-testing