未知错误:调用函数结果缺少“值"Appium Hybrid App [英] Unknown error: call function result missing 'value' Appium Hybrid App

查看:23
本文介绍了未知错误:调用函数结果缺少“值"Appium Hybrid App的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在向某个字段发送密钥时遇到问题

I have ussue when Sending Keys to some field

driver.findElement(By.xpath("//*[@id=\"login-main\"]/a")).click();
Thread.sleep(1000);
driver.findElement(By.xpath("/html/body/div[2]/ion-nav-view/ion-view/login-popup/ion-pane/ion-content/div/form/label[2]/input")).sendKeys("Example");

我将上下文设置为driver.context("WEBVIEW_********");",我可以点击应用程序中的按钮,但不能将键放入字段,并且它发生了第一次,上周它正在工作.错误是:

I set the context to " driver.context("WEBVIEW_********"); " , and I can click buttons in the app , but cant put keys into fields , and it happens for 1st time , last week it was working . The error is :

Exception in thread "main" org.openqa.selenium.WebDriverException: unknown error: call function result missing 'value'
(Session info: chrome=65.0.3325.109)
(Driver info: chromedriver=2.33.506120 
(e3e53437346286c0bc2d2dc9aa4915ba81d9023f),platform=Windows NT 10.0.16299 x86_64) (WARNING: The server did not provide any stacktrace information)

我尝试在 CMD 中使用npm install -g chromedriver"更新 chromeDriver,但 chromeDriver 没有更新到最新版本 2.36.我查了另一个问题,他们有同样的问题,但我认为问题是我无法更新 chromeDriver

I try to update the chromeDriver with " npm install -g chromedriver " in the CMD , but the chromeDriver didnt update to 2.36 which is the latest version. I looked up in another questions , and they have same issue , but I think the problem is that I cant update the chromeDriver

推荐答案

我找到了一个解决方案,如何解决将 chrome 驱动程序更新到 2.36 的问题是为了下载chromedriver版本,并找出Appium采用的chromedriver版本"在哪里路径是

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 .

这篇关于未知错误:调用函数结果缺少“值"Appium Hybrid App的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆