Selenium WebDriverException:未知错误:调用 sendkeys 方法时调用函数结果缺少“值" [英] Selenium WebDriverException: unknown error: call function result missing 'value' while calling sendkeys method

查看:32
本文介绍了Selenium WebDriverException:未知错误:调用 sendkeys 方法时调用函数结果缺少“值"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

When trying to call Sendkeys method in selenium webdriver it is displaying below error:

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)

硒 Jarversion:3.10.0

Selenium Jarversion: 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) 

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

Your main issue is the version compatibility between the binaries you are using as follows :

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

支持 Chrome v54-56

  • 您正在使用 chrome=65.0
  • ChromeDriver v2.36 的发行说明明确提到以下内容:
  • 支持 Chrome v65-66

    • 您的 Selenium Client 版本是 3.10.0.
    • 我们未知您的JDK版本.
      • Your Selenium Client version is 3.10.0.
      • Your JDK version is unknown to us.
      • 因此 ChromeDriver 版本 (v2.27) 和 Chrome 浏览器 版本 (v65.0)

        So there is a clear mismatch between the ChromeDriver version (v2.27) and the Chrome Browser version (v65.0)

        • ChromeDriver 升级到 ChromeDriver v2.36 级.
        • Chrome 版本保持在 Chrome v65.x 级别.(根据 ChromeDriver v2.36 版本说明)
        • 清理您的项目工作区重建您的项目,仅使用所需的依赖项.
        • 使用 CCleaner 工具清除之前和之后的所有操作系统杂事执行测试套件.
        • 如果您的 Chrome 基础版本太旧,请通过 Revo Uninstaller 并安装最新的 GA 和已发布的 Chrome 版本.
        • 执行您的@Test.
        • Upgrade ChromeDriver to ChromeDriver v2.36 level.
        • Keep Chrome version at Chrome v65.x levels. (as per ChromeDriver v2.36 release notes)
        • Clean your Project Workspace and Rebuild your project with required dependencies only.
        • Use CCleaner tool to wipe off all the OS chores before and after the execution of your test Suite.
        • If your base Chrome version is too old, then uninstall it through Revo Uninstaller and install a recent GA and released version of Chrome.
        • Execute your @Test.

        这篇关于Selenium WebDriverException:未知错误:调用 sendkeys 方法时调用函数结果缺少“值"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆