Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 919
Saianil Kumarreddy Avatar asked Mar 11 '18 11:03

Saianil Kumarreddy


1 Answers

An older version of the ChromeDriver is being spun off when the test is being run; to remedy:

  • Ensure that you've gotten your browser up to date (v65-67) and get the latest version of the ChromeDriver executable(v2.38)
  • Extract the ChromeDriver and explicitly set the System property when initializing the ChromeDriver object...

Ex:

  1. System.setProperty("webdriver.chrome.driver", "/path/to/chromedriver.exe");
  2. WebDriver driver = new ChromeDriver();
like image 181
Isaac Riley Avatar answered Sep 24 '22 08:09

Isaac Riley