Thanks for your response siva8kolli. I gave it a try and got the same result. Appium logs indicate that it thinks it found the element and sent the keys successfully. But nothing has happened in the screen.
Does it work for you when you have multiple EditText fields in a page?
info: --> POST /wd/hub/session/bb3df4a1-ce42-4d76-bc86-a360c968a7e0/element/2/click {"id":"2"}
info: [debug] Pushing command to appium work queue: ["element:click",{"elementId":"2"}]
info: [debug] [BOOTSTRAP] [debug] Got data from client: {"cmd":"action","action":"element:click","params":{"elementId":"2"}}
info: [debug] [BOOTSTRAP] [debug] Got command of type ACTION
info: [debug] [BOOTSTRAP] [debug] Got command action: click
info: [debug] [BOOTSTRAP] [debug] Returning result: {"value":true,"status":0}
info: [debug] Responding to client with success: {"status":0,"value":true,"sessionId":"bb3df4a1-ce42-4d76-bc86-a360c968a7e0"}
info: <-- POST /wd/hub/session/bb3df4a1-ce42-4d76-bc86-a360c968a7e0/element/2/click 200 3025.789 ms - 76 {"status":0,"value":true,"sessionId":"bb3df4a1-ce42-4d76-bc86-a360c968a7e0"}
info: --> POST /wd/hub/session/bb3df4a1-ce42-4d76-bc86-a360c968a7e0/element/2/value {"id":"2","value":["admin"]}
info: [debug] Pushing command to appium work queue: ["element:setText",{"elementId":"2","text":"admin","replace":false}]
info: [debug] [BOOTSTRAP] [debug] Got data from client: {"cmd":"action","action":"element:setText","params":{"elementId":"2","text":"admin","replace":false}}
info: [debug] [BOOTSTRAP] [debug] Got command of type ACTION
info: [debug] [BOOTSTRAP] [debug] Got command action: setText
info: [debug] [BOOTSTRAP] [debug] Attempting to clear using UiObject.clearText().
info: [debug] [BOOTSTRAP] [debug] Sending plain text to element: admin
info: [debug] [BOOTSTRAP] [debug] Returning result: {"value":true,"status":0}
info: [debug] Responding to client with success: {"status":0,"value":true,"sessionId":"bb3df4a1-ce42-4d76-bc86-a360c968a7e0"}
info: <-- POST /wd/hub/session/bb3df4a1-ce42-4d76-bc86-a360c968a7e0/element/2/value 200 3946.252 ms - 76 {"status":0,"value":true,"sessionId":"bb3df4a1-ce42-4d76-bc86-a360c968a7e0"}
info: --> GET /wd/hub/status {}
info: [debug] Responding to client with success: {"status":0,"value":{"build":{"version":"1.3.1","revision":"1160ce02bb89c354cb99317985123acf39f0e7d3"}},"sessionId":"bb3df4a1-ce42-4d76-bc86-a360c968a7e0"}
info: <-- GET /wd/hub/status 200 2.273 ms - 155 {"status":0,"value":{"build":{"version":"1.3.1","revision":"1160ce02bb89c354cb99317985123acf39f0e7d3"}},"sessionId":"bb3df4a1-ce42-4d76-bc86-a360c968a7e0"}
Just trying different things I tried to get the “id” attribute of the EditText element and got the following exception
org.openqa.selenium.NoSuchElementException: An element could not be located on the page using the given search parameters. (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 11 milliseconds
For documentation on this error, please visit: http://seleniumhq.org/exceptions/no_such_element.html
Build info: version: '2.42.2', revision: '6a6995d', time: '2014-06-03 17:42:03'
System info: host: 'BkMacBookPro.local', ip: '192.168.2.110', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.9.4', java.version: '1.7.0_71'
Session ID: fc34885f-5537-47f5-88e5-e72b865ed777
Driver info: io.appium.java_client.android.AndroidDriver
Capabilities [{newCommandTimeout=60000, platformVersion=4.4.3, platform=LINUX, databaseEnabled=false, javascriptEnabled=true, platformName=Android, deviceName=Android Emulator, browserName=Android, launchTimeout=60000, webStorageEnabled=false, networkConnectionEnabled=true, desired={newCommandTimeout=60000, platformVersion=4.4.3, deviceName=Android Emulator, platformName=Android, launchTimeout=60000}, locationContextEnabled=false, warnings={}, takesScreenshot=true}]
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:204)
at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:156)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:599)
at io.appium.java_client.AppiumDriver.execute(AppiumDriver.java:176)
at org.openqa.selenium.remote.RemoteWebElement.execute(RemoteWebElement.java:268)
at org.openqa.selenium.remote.RemoteWebElement.getAttribute(RemoteWebElement.java:123)