public static void MoveCursorToElement(string alias) { PageElement element = PageElementCore.GetElementByAlias(alias); ScenarioContext.Current.SetElement(element); element.MoveMouseTo(0, 0); }
public void SelectRegion(string fromAlias, string toAlias) { PageCore currentPage = ScenarioContext.Current.Page(); string fromXPath = Alias.ResolveAsString(fromAlias); PageElement from = currentPage.FindElement(fromXPath); string toXPath = Alias.ResolveAsString(toAlias); PageElement to = currentPage.FindElement(toXPath); from.MoveMouseTo(1, 1); from.MouseDown(1, 1); //to.MoveMouseTo(2, 2); to.MouseUp(1, 1); }