尝试在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 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)
您的主要问题是正在使用的二进制文件之间的版本兼容性,如下所示:
Supports Chrome v54-56
Supports Chrome v65-66
因此,ChromeDriver版本(v2.27)和Chrome浏览器版本(v65.0)之间明显不匹配
解决方案
@Test
。 关于google-chrome - Selenium WebDriverException : unknown error: call function result missing 'value' while calling sendkeys method,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49219594/