{"action":"created","issue":{"url":"https://api.github.com/repos/RobotiumTech/robotium/issues/215","labels_url":"https://api.github.com/repos/RobotiumTech/robotium/issues/215/labels{/name}","comments_url":"https://api.github.com/repos/RobotiumTech/robotium/issues/215/comments","events_url":"https://api.github.com/repos/RobotiumTech/robotium/issues/215/events","html_url":"https://github.com/RobotiumTech/robotium/issues/215","id":101920867,"number":215,"title":"Robotium can't click on TextViews if dialog is opened multiple times","user":{"login":"renas","id":165541,"avatar_url":"https://avatars.githubusercontent.com/u/165541?v=3","gravatar_id":"","url":"https://api.github.com/users/renas","html_url":"https://github.com/renas","followers_url":"https://api.github.com/users/renas/followers","following_url":"https://api.github.com/users/renas/following{/other_user}","gists_url":"https://api.github.com/users/renas/gists{/gist_id}","starred_url":"https://api.github.com/users/renas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/renas/subscriptions","organizations_url":"https://api.github.com/users/renas/orgs","repos_url":"https://api.github.com/users/renas/repos","events_url":"https://api.github.com/users/renas/events{/privacy}","received_events_url":"https://api.github.com/users/renas/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/RobotiumTech/robotium/labels/bug","name":"bug","color":"FFFFFF"},{"url":"https://api.github.com/repos/RobotiumTech/robotium/labels/imported","name":"imported","color":"FFFFFF"},{"url":"https://api.github.com/repos/RobotiumTech/robotium/labels/invalid","name":"invalid","color":"FFFFFF"},{"url":"https://api.github.com/repos/RobotiumTech/robotium/labels/Priority-Medium","name":"Priority-Medium","color":"FFFFFF"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-19T15:32:38Z","updated_at":"2015-08-19T15:32:39Z","closed_at":null,"body":"_From [peter.tr...@gmail.com](https://code.google.com/u/105579620281836120697/) on August 08, 2011 05:51:35_\n\nIn my app I have a ListView which can be filled through a dialog which contains another ListView with TextViews nested in LinearLayouts. By clicking on any of these TextViews they're added to the (main) List and the dialog is closed. But there's a strange issue where Robotium can't click on the TextViews if the dialog is opened multiple times: What steps will reproduce the problem? 1. Open dialog\r\n2. Click on TextView (item is added, dialog is closed)\r\n3. Open dialog again\r\n4. Attempt to click on TextView again --> Robotium can't \"see\" or click the TextView. What is the expected output? What do you see instead? solo.clickOnText produces the following error trace:\r\njunit.framework.AssertionFailedError: The text: Item 2 is not found!\r\nat com.jayway.android.robotium.solo.Clicker.clickOnText(Clicker.java:282)\r\nat com.jayway.android.robotium.solo.Solo.clickOnText(Solo.java:830)\r\nat foo.bar.test.AddItemsTest.addItemClickOnText(AddItemsTest.java:68)\r\nat foo.bar.test.AddItemsTest.testAddItemsClickOnText(AddItemsTest.java:74)\r\n[...]\r\n\r\nThe text is clearly visible on the screen and running the app and manually clicking on the items works perfectly fine all the time. What version of the product are you using? On what operating system? Robotium 2.4. with both Android 2.1 and 2.2 on emulator and HTC Desire Please provide any additional information below. I've done a little debugging and traversed the ListView manually. Turns out the ListView contains all the TextViews (and I can access them too), but getCurrentTextViews doesn't return them all the second time the dialog is opened. When I traverse the ListView manually to get the View I want to click on and use solo.clickOnView nothing happens. No click, but no exception or failed assertion either.\r\n\r\nI've created a (somewhat) minimal example of the problem and attached it. Just run the test project to see the problem.\n\n**Attachment:** [ListExample.zip](http://code.google.com/p/robotium/issues/detail?id=136)\n\n_Original issue: http://code.google.com/p/robotium/issues/detail?id=136_"},"comment":{"url":"https://api.github.com/repos/RobotiumTech/robotium/issues/comments/132639615","html_url":"https://github.com/RobotiumTech/robotium/issues/215#issuecomment-132639615","issue_url":"https://api.github.com/repos/RobotiumTech/robotium/issues/215","id":132639615,"user":{"login":"renas","id":165541,"avatar_url":"https://avatars.githubusercontent.com/u/165541?v=3","gravatar_id":"","url":"https://api.github.com/users/renas","html_url":"https://github.com/renas","followers_url":"https://api.github.com/users/renas/followers","following_url":"https://api.github.com/users/renas/following{/other_user}","gists_url":"https://api.github.com/users/renas/gists{/gist_id}","starred_url":"https://api.github.com/users/renas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/renas/subscriptions","organizations_url":"https://api.github.com/users/renas/orgs","repos_url":"https://api.github.com/users/renas/repos","events_url":"https://api.github.com/users/renas/events{/privacy}","received_events_url":"https://api.github.com/users/renas/received_events","type":"User","site_admin":false},"created_at":"2015-08-19T15:32:39Z","updated_at":"2015-08-19T15:32:39Z","body":"_From [renasr...@gmail.com](https://code.google.com/u/108052454046732184536/) on August 08, 2011 22:36:06_\n\nThanks for this. The issue will be analyzed and if possible fixed before the next release.\n\n**Summary:** Robotium can't click on TextViews if dialog is opened multiple times  \n  **Status:** Accepted  \n"}}