Skip to content
This repository has been archived by the owner on Aug 13, 2018. It is now read-only.

Can't enter text in Android text element #43

Open
sglebs opened this issue Mar 16, 2017 · 3 comments
Open

Can't enter text in Android text element #43

sglebs opened this issue Mar 16, 2017 · 3 comments

Comments

@sglebs
Copy link

sglebs commented Mar 16, 2017

I am using Appium as a front to an Android app under the emulator. When I try to execute this:

| ensure | present | id=com.nexxera.nix:id/til_cpf |
| show | screenshot |    
| type | 16956653176 | in | name=com.nexxera.nix:id/til_cpf |

I am getting this:

info: [debug] [BOOTSTRAP] [debug] Using: UiSelector[INSTANCE=0, RESOURCE_ID=com.nexxera.nix:id/et_password]
> info: [debug] [BOOTSTRAP] [debug] Returning result: {"status":0,"value":{"ELEMENT":"42"}}
> info: [debug] Responding to client with success: {"status":0,"value":{"ELEMENT":"42"},"sessionId":"6d01af01-ce57-46e5-91db-6b842fad3f2b"}
> info: <-- POST /wd/hub/session/6d01af01-ce57-46e5-91db-6b842fad3f2b/element 200 6.687 ms - 88 {"status":0,"value":{"ELEMENT":"42"},"sessionId":"6d01af01-ce57-46e5-91db-6b842fad3f2b"}
> info: --> GET /wd/hub/session/6d01af01-ce57-46e5-91db-6b842fad3f2b/element/42/attribute/type {}
> info: [debug] Pushing command to appium work queue: ["element:getAttribute",{"elementId":"42","attribute":"type"}]
> info: [debug] [BOOTSTRAP] [debug] Got data from client: {"cmd":"action","action":"element:getAttribute","params":{"elementId":"42","attribute":"type"}}
> info: [debug] [BOOTSTRAP] [debug] Got command of type ACTION
> info: [debug] [BOOTSTRAP] [debug] Got command action: getAttribute
> info: [debug] [BOOTSTRAP] [debug] Returning result: {"status":7,"value":"This element does not have the 'type' attribute"}

I am running 0.9.0. I will try again with your latest, 1.0.3.

@sglebs
Copy link
Author

sglebs commented Mar 16, 2017

Same problem with 1.0.2.

@sglebs
Copy link
Author

sglebs commented Mar 16, 2017

You need to assume some default when you ask for the element type and the call fails ({"status":7,"value":"This element does not have the 'type' attribute"}). Repeating the same query over and over is no good.

@sglebs
Copy link
Author

sglebs commented Mar 17, 2017

fitnesse-error

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant