Selenium WebDriverException:未知错误:调用sendkeys方法时调用函数结果缺少“值” [英] Selenium WebDriverException: unknown error: call function result missing 'value' while calling sendkeys method
问题描述
在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 = 65.0
- 发行说明 ChromeDriver v2.36 清楚地提到以下内容:
支持 Chrome v65-66 strong>
- 您的 Selenium Client 版本是 3.10.0 。
- 您的 JDK版本 未知。
所以有一个明显的错误 ChromeDriver 版本( v2.27 )和 Chrome浏览器版本( v65.0 p>
解决方案
- 将 ChromeDriver 升级到 ChromeDriver v2.36 级别。
- 将 Chrome 版保持在 Chrome v65.x 级别。 (根据ChromeDriver v2.36发行说明,)
- 清理您的 Project Workspace 和仅用必需的依赖关系重建您的项目。
- 使用 CCleaner 工具在执行前后擦除所有操作系统杂项您的 Chrome套件版本过旧,请通过 Revo Uninstaller ,并安装最近的Google Analytics和发布的Chrome版本。
- 执行您的
@Test
。
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屋!