This is the code snippet I am Using
el = driver.findElementByClassName("android.widget.EditText");
el.sendKeys("auto");
the following is the console log
[HTTP] --> POST /wd/hub/session/41efa5fa-df90-4820-bb64-5d27c69251d3/element/1/value {"id":"1","value":["auto"]}
[debug] [MJSONWP] Calling AppiumDriver.setValue() with args: [["auto"],"1","41efa5fa-df90-4820-bb64-5d27c69251d3"]
[debug] [AndroidBootstrap] Sending command to android: {"cmd":"action","action":"element:setText","params":{"elementId":"1","text":"auto","replace":false,"unicodeKeyboard":true}}
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got data from client: {"cmd":"action","action":"element:setText","params":{"elementId":"1","text":"auto","replace":false,"unicodeKeyboard":true}}
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command of type ACTION
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command action: setText
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Using element passed in: 1
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Attempting to clear using UiObject.clearText().
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Could not check for hint text because the element is not focused!
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Clearing text not successful. Attempting to clear by selecting all and deleting.
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Sending plain text to element: Searchauto
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Returning result: {"status":0,"value":true}
[debug] [AndroidBootstrap] Received command result from bootstrap
[debug] [MJSONWP] Responding to client with driver.setValue() result: true
You can note that the driver is sending the text "Searchauto" to the element instead of "auto".
Anyone faced similar issue? The same code snippet works perfectly in another search bar.