sangmingming / robotium

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

Can't click on TextView by its hint #201

Closed GoogleCodeExporter closed 9 years ago

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

What is the expected output? What do you see instead?
Error "Hint of the TextView or EditText" not found because it is the hint and 
not the text

What version of the product are you using? On what operating system?
3.0 with Win XP

Original issue reported on code.google.com by christop...@gmail.com on 4 Jan 2012 at 3:44

GoogleCodeExporter commented 9 years ago
Changing line 261 of Clicker.java to
if(pattern.matcher(textView.getText().toString()).find() || 
pattern.matcher(textView.getHint().toString()).find()){

Original comment by christop...@gmail.com on 4 Jan 2012 at 6:09

GoogleCodeExporter commented 9 years ago
Thanks for this. Will be included in next weeks release.

Original comment by renasr...@gmail.com on 6 Jan 2012 at 8:14

GoogleCodeExporter commented 9 years ago

Original comment by renasr...@gmail.com on 6 Jan 2012 at 8:16

GoogleCodeExporter commented 9 years ago
This has been implemented in Robotium 3.1.

Original comment by renasr...@gmail.com on 9 Jan 2012 at 12:00