org.openqa.selenium.WebDriverException: unknown error: call function result missing 'value'
I was seeing the same issue. The problem only appears when using Chrome 65 (currently: dev channel). With Chrome 64 (both stable channel and beta channel) everything worked fine.
It turns out I had an old chromedriver installed. Specifically, I was using chrome=65.0.3325.51
with chromedriver=2.29.461585
. Running npm install -g chromedriver
bumped chromedriver to 2.35.528157 and now the problem is solved.
TL;DR: run npm install -g chromedriver
Exception in thread main org.openqa.selenium.WebDriverException: unknown error: call function result missing 'value'
This seems default Appium's chromedriver.exe
issue in my case as it was taking chromedriver=2.33.506120
by default even i have set 2.45 version. following workaround resolved my issue.
Prerequisites
Should have compatible chromedriver.exe
version with the chrome version installed in device/emulator
setting chromedriver.exe path in Appium using
System.setProperty("webdriver.chrome.driver",
won't work
"D:\\Eclipse\\chromedriver.exe");
Use following ways to set chromedriver path in Appium:
Using
DesiredCapabilities
e.g.DesiredCapabilities capabilities = new DesiredCapabilities();
capabilities.setCapability("platformName", "Android");
capabilities.setCapability("deviceName", "emulator-5554 (9)");
capabilities.setCapability("platformVersion", "9");
capabilities.setCapability("browserName", "Chrome");
capabilities.setCapability("noReset", true);
capabilities.setCapability("chromedriverExecutable", "D:\\chromedriver_win32_2.45\\chromedriver.exe");Provide chromedriver.exe path while start Appium Server. Refer below snap
Selenium WebDriverException: unknown error: call function result missing 'value' using Java
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.181)
(Driver info: chromedriver=2.33.506120 (e3e53437346286c0bc2d2dc9aa4915ba81d9023f),platform=Windows NT 6.3.9600 x86_64)
Build info: version: '3.4.0', revision: 'unknown', time: 'unknown'
System info: host: 'NIL-MKODAGA-D13', ip: '172.16.20.242', os.name: 'Windows 8.1', os.arch: 'amd64', os.version: '6.3', java.version: '9.0.1'
Driver info: org.openqa.selenium.chrome.ChromeDriver
The error clearly says that the Selenium Client and ChromeDriver is not getting detected back as in :
Build info: version: '3.4.0', revision: 'unknown', time: 'unknown'
Driver info: org.openqa.selenium.chrome.ChromeDriver
Your main issue is the version compatibility between the binaries you are using as follows :
- You are using chromedriver=2.33
- Release Notes of chromedriver=2.33 clearly mentions the following :
Supports Chrome v60-62
- You are using chrome=65.0
- Release Notes of ChromeDriver v2.37 clearly mentions the following :
Supports Chrome v64-66
- Your Selenium Client version is 3.4.0 of which is a bit older.
So there is a clear mismatch between the Selenium Client v3.4.0 , ChromeDriver version (v2.33) and the Chrome Browser version (v65.0)
Solution
- Upgrade Selenium to current levels Version 3.11.0.
- Upgrade ChromeDriver to current ChromeDriver v2.37 level.
- Keep Chrome version at Chrome v65.x levels. (as per ChromeDriver v2.37 release notes)
- Clean your Project Workspace through your IDE 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 Web Client version is too old, then uninstall it through Revo Uninstaller and install a recent GA and released version of Web Client.
- Take a System Reboot.
- Execute your
@Test
.
WebDriverError: unknown error: call function result missing 'value'
As Chrome 67 supports chromedriver 2.38,2.39 & 2.40 and you're using 2.29 . Please update driver to latest version which is 2.40. link here http://chromedriver.chromium.org/downloads
Unknown error: call function result missing 'value' Appium Hybrid App
I found a solution how to fix the issue with updating the chrome driver to 2.36
It was to download the chromedriver version and to find out where is the "version of chromedriver" that is taken by Appium
the path was
C:\Users\Rosen\AppData\Local\Programs\appium-desktop\resources\app\node_modules\appium\node_modules\appium-chromedriver\chromedriver\win\chromedriver.exe
and change it with the new version , so it fix the problem and stop telling me that there is an issue .
Related Topics
How to Double Buffer in Java for a Game
Getting Nosuchmethoderror:Javax.Servlet.Servletcontext.Getvirtualservername()
What Does "An Arbitrary Object of a Particular Type" Mean in Java 8
How to Change Java Logging Console Output from Std Err to Std Out
How to Create a Stream of Regex Matches
Java: Split String When an Uppercase Letter Is Found
How to Enable Wire Logging for a Java Httpurlconnection Traffic
Is There a Commonly Used Rational Numbers Library in Java
Collision Detection Between Two Images in Java
Java - Regular Expression Finding Comments in Code
String Valueof VS Concatenation with Empty String
Parsing a Hexadecimal String to an Integer Throws a Numberformatexception
Bouncy Castle:Pemreader => Pemparser
Java: Why am I Required to Initialize a Primitive Local Variable
Sum All the Elements Java Arraylist