我有列出帐户的磁贴。我想将一个拖到另一个位置并尝试了以下代码,但似乎都不起作用:
AppResult[] fro = app.Query(x => x.Id("reorder_icon").Sibling().Marked(fromAccount));
AppResult[] t = app.Query(x => x.Id("reorder_icon").Sibling().Marked(toAccount));
app.DragCoordinates(fro.FirstOrDefault().Rect.CenterX, fro.FirstOrDefault().Rect.CenterY, t.FirstOrDefault().Rect.CenterX, t.FirstOrDefault().Rect.CenterY);
app.DragAndDrop(x => x.Id("reorder_icon").Sibling().Marked(fromAccount),x => x.Id("reorder_icon").Sibling().Marked(toAccount));