RobotiumTech / robotium

Android UI Testing
http://www.robotium.org
Apache License 2.0
2.86k stars 786 forks source link

solo.typetex() doesn't type text in edittext field #723

Closed renas closed 9 years ago

renas commented 9 years ago

From hudro...@gmail.com on December 15, 2014 08:06:34

What steps will reproduce the problem? 1. 2. 3. What is the expected output? What do you see instead? I expected Text is typed by spell and softkeyboard is opened while text is typed. I see that the text isn't inserted in edittext field What version of the product are you using? On what operating system? 5.2.2 SNAPSHOT Please provide any additional information below.

Original issue: http://code.google.com/p/robotium/issues/detail?id=644

renas commented 9 years ago

From hudro...@gmail.com on December 15, 2014 08:10:49

Steps

  1. Any activity is showed on the screen
  2. An EditText view is on the activity 3.Using solo.typetext(R.id.edittext1, "something"); try to type text to edittect field.
renas commented 9 years ago

From renasr...@gmail.com on December 18, 2014 09:28:08

You can either use the view or index. So solo.typetext(R.id.edittext1, "something"); will not work as you have entered the resource id.

Status: Invalid
Owner: renasr...@gmail.com

renas commented 9 years ago

From hudro...@gmail.com on December 19, 2014 04:33:33

sorry, I made a mistace. I used

EditText view = (EditText)solo.getView(R.id.etMessage); solo.typeText(view, "mess");

Nothing happens when run solo.typetext(view, "mess")