# Android -Unable to perform any operations on the text field

**URL:** <https://discuss.appium.io/t/android-unable-to-perform-any-operations-on-the-text-field/43922>\
**Category:** Issues/Bugs\
**Created:** [September 12, 2024, 6:40am UTC](https://discuss.appium.io/t/android-unable-to-perform-any-operations-on-the-text-field/43922 "2024-09-12T06:40:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Blue205](https://discuss.appium.io/user_avatar/discuss.appium.io/blue205/32/13624_2.png) [@Blue205](https://discuss.appium.io/u/Blue205)\
**Post date:** [September 12, 2024, 6:40am UTC](https://discuss.appium.io/t/android-unable-to-perform-any-operations-on-the-text-field/43922/1 "2024-09-12T06:40:39Z")

</div>

“I am unable to perform any operations on the text field. Regardless of the actions I attempt, such as clicking, sending keys, or clearing the text, the text field does not respond, and there are no error messages.”

other text fields in this app are normal，I can send\_keys or clear but this text field can’t do anything.No error.

I try different locator strategies to locate this text field，By Xpath and by class  
and try to send\_keys,adb input，key\_event,clear,click

I try on a real phone and use python,Is there any wrong with my code or my device? Or something wrong with this app？

The text field is for price,only can in put number with two decimal places，I am not sure if its matter  
What should I do

```auto
text_box = driver.find_element(By.XPATH, "//android.widget.EditText[@text='想卖多少钱']")
print(text_box)

text_box.send_keys("5")

```

 ![$E2Q%MWF{Y(6156V`30{AA8](https://discuss.appium.io/uploads/default/original/2X/d/d4c2b987e8257c403c17324e89999aeb513d4392.png)  
 ![QQ图片20240912143506](https://discuss.appium.io/uploads/default/original/2X/9/98837123a7cf6ab793a8489263e3cbf471097f79.png)

---

<div class="post-metadata">

**Author:** ![mykola-mokhnach](https://discuss.appium.io/user_avatar/discuss.appium.io/mykola-mokhnach/32/4578_2.png) [@mykola-mokhnach](https://discuss.appium.io/u/mykola-mokhnach)\
**Post date:** [September 12, 2024, 9:35am UTC](https://discuss.appium.io/t/android-unable-to-perform-any-operations-on-the-text-field/43922/2 "2024-09-12T09:35:40Z")

</div>

If the text edit only accepts numbers then [GitHub - appium/appium-uiautomator2-driver: Appium driver for Android UIAutomator2](https://github.com/appium/appium-uiautomator2-driver?tab=readme-ov-file#mobile-type) should work. Just make sure the text edit is focused before imitating the input

---

<div class="post-metadata">

**Author:** ![Aleksei](https://discuss.appium.io/user_avatar/discuss.appium.io/aleksei/32/6267_2.png) [@Aleksei](https://discuss.appium.io/u/Aleksei)\
**Post date:** [September 12, 2024, 9:51am UTC](https://discuss.appium.io/t/android-unable-to-perform-any-operations-on-the-text-field/43922/3 "2024-09-12T09:51:46Z")

</div>

you can also try

```auto
new Actions(driver).sendKeys(text).perform();
// or as mykola suggested
driver.executeScript("mobile: type", Map.ofEntries(Map.entry("text", text)));

```
