{"action":"opened","issue":{"url":"https://api.github.com/repos/RobotiumTech/robotium/issues/355","labels_url":"https://api.github.com/repos/RobotiumTech/robotium/issues/355/labels{/name}","comments_url":"https://api.github.com/repos/RobotiumTech/robotium/issues/355/comments","events_url":"https://api.github.com/repos/RobotiumTech/robotium/issues/355/events","html_url":"https://github.com/RobotiumTech/robotium/issues/355","id":101960011,"number":355,"title":"Problems scrolling up in a spinner to select the first item","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/Priority-Medium","name":"Priority-Medium","color":"FFFFFF"},{"url":"https://api.github.com/repos/RobotiumTech/robotium/labels/wontfix","name":"wontfix","color":"FFFFFF"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-19T17:59:41Z","updated_at":"2015-08-19T17:59:41Z","closed_at":null,"body":"_From [markus.k...@gmail.com](https://code.google.com/u/103701449385470670364/) on June 06, 2012 23:49:28_\n\nWhat steps will reproduce the problem? 1. Implement a GUI with a spinner\r\n2. Make it select the second item when you start the activity during a test, either in onCreate or onResume.\r\n3. Run the following code in the test case:\r\n    int pos = solo.getCurrentSpinners().get(0).getSelectedItemPosition();\r\n    solo.pressSpinnerItem(0, 0 - pos); What is the expected output? What do you see instead? Expected: Robotium selects the first item in the spinner.\r\nInstead: Robotium presses the second item, the one that was already selected when the test started. What version of the product are you using? On what operating system? Robotium: 3.2.1, Android: Any, Operating system: Mac OS Please provide any additional information below. I am having problems scrolling up in a spinner to select the first item. Here is my code:\r\n\r\nint pos = solo.getCurrentSpinners().get(0).getSelectedItemPosition();\r\nsolo.pressSpinnerItem(0, 0 - pos);\r\n\r\npos is 1 when I debug, and Robotium still presses the spinner on index 1 even though I order it to press on -1.\n\n_Original issue: http://code.google.com/p/robotium/issues/detail?id=276_"}}