gpt4 book ai didi

google-chrome - Selenium WebDriverException : unknown error: call function result missing 'value' while calling sendkeys method

转载 作者:太空宇宙 更新时间:2023-11-04 10:34:04 25 4
gpt4 key购买 nike

当尝试在 selenium webdriver 中调用 Sendkeys 方法时,它显示以下错误:

Exception in thread "main" org.openqa.selenium.WebDriverException: unknown error: call function result missing 'value'  
(Session info: chrome=65.0.3325.146)
(Driver info: chromedriver=2.27.440174 (e97a722caafc2d3a8b807ee115bfb307f7d2cfd9),platform=Windows NT 6.1.7600 x86_64) (WARNING: The server did not provide any stacktrace information)

Selenium Jar 版本:3.10.0

最佳答案

错误说明了一切:

Exception in thread "main" org.openqa.selenium.WebDriverException: unknown error: call function result missing 'value'
(Session info: chrome=65.0.3325.146)
(Driver info: chromedriver=2.27.440174 (e97a722caafc2d3a8b807ee115bfb307f7d2cfd9),platform=Windows NT 6.1.7600 x86_64)

您的主要问题是您正在使用的二进制文件之间的版本兼容性,如下所示:

  • 您正在使用 chromedriver=2.27
  • chromedriver=2.27 的发行说明明确提到以下内容:

Supports Chrome v54-56

Supports Chrome v65-66

  • 您的 Selenium 客户端版本是 3.10.0
  • 我们未知您的JDK版本

因此,ChromeDriver 版本 (v2.27) 和 Chrome 浏览器 版本 (v65.0) 之间存在明显不匹配

解决方案

  • 将 ChromeDriver 升级至 ChromeDriver v2.36级别。
  • Chrome 版本保持在 Chrome v65.x 级别。 (as per ChromeDriver v2.36 release notes)
  • 清理您的项目工作空间并仅使用所需的依赖项重建您的项目。
  • 使用CCleaner工具可以清除执行测试套件之前和之后的所有操作系统杂务。
  • 如果您的基本 Chrome 版本太旧,请通过 Revo Uninstaller 卸载它并安装 Chrome 的最新 GA 和发布版本。
  • 执行您的@Test

关于google-chrome - Selenium WebDriverException : unknown error: call function result missing 'value' while calling sendkeys method,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49668534/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com