sangmingming / robotium

Automatically exported from code.google.com/p/robotium
0 stars 0 forks source link

Can't get TextView by its hint #207

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. View view = this.solo.getText("Hint of the TextView or EditText");

What is the expected output? What do you see instead?

I expect to get a pointer to the first TextView that has no text and the hint 
string "Hint of the TextView or EditText" set. Instead I get a null pointer.

What version of the product are you using? On what operating system?
Robotium 3.1 on Android R15

Please provide any additional information below.
See issue 201 for a similar issue

Original issue reported on code.google.com by christia...@numberfour.eu on 11 Jan 2012 at 1:36

GoogleCodeExporter commented 9 years ago
Thanks for this. Right now clickOnText and searchText are the only methods with 
support for hints. Hint support for getText will be included in the next 
release.  

Original comment by renasr...@gmail.com on 11 Jan 2012 at 2:20

GoogleCodeExporter commented 9 years ago
Thank you, searchText actually solves my use case. Verify that a hint is 
actually displayed.

Unsure if there is another use case for getText() with a hint, so maybe this 
issue can be closed?

Original comment by christia...@numberfour.eu on 11 Jan 2012 at 2:32

GoogleCodeExporter commented 9 years ago
Ok. Lets close it until someone finds a use case and asks for it to be opened 
up again. 

Original comment by renasr...@gmail.com on 11 Jan 2012 at 2:36