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

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

问题描述

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

 线程mainorg中的异常。 openqa.selenium.WebDriverException:未知错误:调用函数结果缺少'值'
(会话信息:chrome = 65.0.3325.146)
(驱动程序信息:chromedriver = 2.27.440174(e97a722caafc2d3a8b807ee115bfb307f7d2cfd9),platform = Windows NT 6.1.7600 x86_64)(警告:服务器没有提供任何堆栈跟踪信息)

Selenium Jarversion: 3.10.0

解决方案

错误说明了一切:

<$ p $
(会话信息:chrome = 65.0.3325.146)
在线程main中的异常org.openqa.selenium.WebDriverException:未知错误:调用函数结果缺少'value'
(驱动程序信息:chromedriver = 2.27.440174(e97a722caafc2d3a8b807ee115bfb307f7d2cfd9),platform = Windows NT 6.1.7600 x86_64)

您的主要问题是 ve您正在使用的二进制文件之间的rsion兼容性如下所示:您已使用 chromedriver = 2.27 chromedriver = 2.27 / em> 明确提及以下内容:



支持 Chrome v54-56






支持 Chrome v65-66 strong>





  • 您的 Selenium Client 版本是 3.10.0

  • 您的 JDK版本 未知



所以有一个明显的错误 ChromeDriver 版本( v2.27 )和 Chrome浏览器版本( v65.0 p>

解决方案




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)

Selenium Jarversion: 3.10.0

解决方案

The error says it all :

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 :

  • You are using chromedriver=2.27
  • Release Notes of chromedriver=2.27 clearly mentions the following :

Supports Chrome v54-56

  • You are using chrome=65.0
  • Release Notes of ChromeDriver v2.36 clearly mentions the following :

Supports Chrome v65-66

  • Your Selenium Client version is 3.10.0.
  • Your JDK version is unknown to us.

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

Solution

  • 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天全站免登陆