public void InvalidCastExceptionWhenScrollingAndRefreshingTableView() { RunningApp.Screenshot("Start G1414"); var tableFrame = RunningApp.WaitForElement(q => q.Marked("TableView"))[0].Rect; RunningApp.ScrollForElement("* marked:'Row-4-24'", new Drag(tableFrame, Drag.Direction.BottomToTop, Drag.DragLength.Long)); RunningApp.Screenshot("Scrolled to end without crashing!"); RunningApp.ScrollForElement("* marked:'Row-0-0'", new Drag(tableFrame, Drag.Direction.TopToBottom, Drag.DragLength.Long)); RunningApp.Screenshot("Scrolled to top without crashing!"); }