在 Appium Sendkeys 没有按预期工作,它发送的比我给它的多 [英] In Appium Sendkeys didn't work as expected, it sends more than i give to it
本文介绍了在 Appium Sendkeys 没有按预期工作,它发送的比我给它的多的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用 Appium 编写 Android 应用程序的测试用例,当我点击以下代码时
I'm using Appium to write test cases of an Android application, when i tap the following code
public void EnterQuantity() {
wd.findElement(By.xpath("//android.widget.LinearLayout[1]/android.widget.FrameLayout[1]/android.widget.LinearLayout[1]/android.widget.FrameLayout[1]/android.widget.RelativeLayout[1]/android.widget.ScrollView[1]/android.widget.LinearLayout[1]/android.widget.LinearLayout[3]/android.widget.LinearLayout[3]/android.widget.LinearLayout[1]/android.widget.EditText[1]")).sendKeys("1");
}
我在数量字段中得到 11 而不是 1.我怎样才能降低写的速度,以确保只写我给的数字没有加倍.
I get 11 in Quantity field instead of 1. How can i reduce the speed of writing in order to be sure that only the number i gave is written not doubled.
推荐答案
尝试从 Language & 更改自动更正设置android 设备手动输入设置
Try changing your Auto-Correction setting from Language & Input Setting in android Device manually
这篇关于在 Appium Sendkeys 没有按预期工作,它发送的比我给它的多的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文