Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.7k views
in Technique[技术] by (71.8m points)

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

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

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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.

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...