{"action":"created","issue":{"url":"https://api.github.com/repos/TestStack/White/issues/441","repository_url":"https://api.github.com/repos/TestStack/White","labels_url":"https://api.github.com/repos/TestStack/White/issues/441/labels{/name}","comments_url":"https://api.github.com/repos/TestStack/White/issues/441/comments","events_url":"https://api.github.com/repos/TestStack/White/issues/441/events","html_url":"https://github.com/TestStack/White/issues/441","id":161357609,"number":441,"title":"ListView with scroll bar","user":{"login":"sinall","id":1246382,"avatar_url":"https://avatars.githubusercontent.com/u/1246382?v=3","gravatar_id":"","url":"https://api.github.com/users/sinall","html_url":"https://github.com/sinall","followers_url":"https://api.github.com/users/sinall/followers","following_url":"https://api.github.com/users/sinall/following{/other_user}","gists_url":"https://api.github.com/users/sinall/gists{/gist_id}","starred_url":"https://api.github.com/users/sinall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sinall/subscriptions","organizations_url":"https://api.github.com/users/sinall/orgs","repos_url":"https://api.github.com/users/sinall/repos","events_url":"https://api.github.com/users/sinall/events{/privacy}","received_events_url":"https://api.github.com/users/sinall/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-06-21T06:20:02Z","updated_at":"2016-09-23T03:36:21Z","closed_at":null,"body":"I found White tried to scroll ListView in ListViewRow.Cells, that caused exception in TestStack.White.UIItems.UIItem.PerformIfValid.\r\n\r\nI checked the code:\r\n```\r\n        public virtual ListViewCells Cells\r\n        {\r\n            get\r\n            {\r\n                **actionListener.ActionPerforming(this);**\r\n                var collection = finder.Descendants(\r\n                        new AutomationSearchCondition(\r\n                            new OrCondition(\r\n                                AutomationSearchCondition.ByControlType(ControlType.Text).Condition,\r\n                                AutomationSearchCondition.ByControlType(ControlType.CheckBox).Condition,\r\n                                AutomationSearchCondition.ByControlType(ControlType.ComboBox).Condition,\r\n                                AutomationSearchCondition.ByControlType(ControlType.Image).Condition)));\r\n                return new ListViewCells(collection, actionListener, header);\r\n            }\r\n        }\r\n```\r\n\r\nSeems that the highlighted statement caused the problem.\r\nCould we just find the cells without calling it?\r\n"},"comment":{"url":"https://api.github.com/repos/TestStack/White/issues/comments/249094571","html_url":"https://github.com/TestStack/White/issues/441#issuecomment-249094571","issue_url":"https://api.github.com/repos/TestStack/White/issues/441","id":249094571,"user":{"login":"sinall","id":1246382,"avatar_url":"https://avatars.githubusercontent.com/u/1246382?v=3","gravatar_id":"","url":"https://api.github.com/users/sinall","html_url":"https://github.com/sinall","followers_url":"https://api.github.com/users/sinall/followers","following_url":"https://api.github.com/users/sinall/following{/other_user}","gists_url":"https://api.github.com/users/sinall/gists{/gist_id}","starred_url":"https://api.github.com/users/sinall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sinall/subscriptions","organizations_url":"https://api.github.com/users/sinall/orgs","repos_url":"https://api.github.com/users/sinall/repos","events_url":"https://api.github.com/users/sinall/events{/privacy}","received_events_url":"https://api.github.com/users/sinall/received_events","type":"User","site_admin":false},"created_at":"2016-09-23T03:36:21Z","updated_at":"2016-09-23T03:36:21Z","body":"There are some Chinese in the exception, however it should show you some information.\r\n`\r\nTestStack.White.AutomationException: Cannot perform action on Button. AutomationId:LargeDecrement, Name:大幅度后滚, ControlType:按钮, FrameworkId:Win32, element is offscreen\r\n   在 TestStack.White.UIItems.UIItem.PerformIfValid(Action action) 位置 c:\\TeamCity\\buildAgent\\work\\89a20b30302799e\\src\\TestStack.White\\UIItems\\UIItem.cs:行号 254\r\n   在 TestStack.White.UIItems.UIItem.Click() 位置 c:\\TeamCity\\buildAgent\\work\\89a20b30302799e\\src\\TestStack.White\\UIItems\\UIItem.cs:行号 231\r\n   在 TestStack.White.UIItems.Scrolling.ScrollBar.<SetToMinimum>b__0() 位置 c:\\TeamCity\\buildAgent\\work\\89a20b30302799e\\src\\TestStack.White\\UIItems\\Scrolling\\ScrollBar.cs:行号 54\r\n   在 TestStack.White.Utility.Retry.For[T](Func`1 getMethod, Predicate`1 shouldRetry, TimeSpan retryFor, Nullable`1 retryInterval) 位置 c:\\TeamCity\\buildAgent\\work\\89a20b30302799e\\src\\TestStack.White\\Utility\\Retry.cs:行号 138\r\n   在 TestStack.White.UIItems.Scrolling.ScrollBar.SetToMinimum() 位置 c:\\TeamCity\\buildAgent\\work\\89a20b30302799e\\src\\TestStack.White\\UIItems\\Scrolling\\ScrollBar.cs:行号 52\r\n   在 TestStack.White.UIItems.Scrolling.ScreenItem.MakeVisible(VerticalSpanProvider verticalSpanProvider) 位置 c:\\TeamCity\\buildAgent\\work\\89a20b30302799e\\src\\TestStack.White\\UIItems\\Scrolling\\ScreenItem.cs:行号 39\r\n   在 TestStack.White.UIItems.TreeItems.Tree.ActionPerforming(UIItem uiItem) 位置 c:\\TeamCity\\buildAgent\\work\\89a20b30302799e\\src\\TestStack.White\\UIItems\\TreeItems\\Tree.cs:行号 137\r\n   在 TestStack.White.UIItems.TreeItems.TreeNode.Select() 位置 c:\\TeamCity\\buildAgent\\work\\89a20b30302799e\\src\\TestStack.White\\UIItems\\TreeItems\\TreeNode.cs:行号 56\r\n   在 ShiPanE_App.TdxDialog.Query(DateTime startDateTime, DateTime endDateTime) 位置 C:\\Users\\ruigao\\Documents\\Visual_Studio_2015\\Projects\\ShiPanE\\ShiPanE_App\\TdxDialog.cs:行号 47\r\n`"}}
{"actor":{"display_login":"sinall"}}