Beispiel #1
0
 public static void DoubleClick(UITestControl control, Point relativeCoordinate)
 {
     control.DoubleClick(ModifierKeys.None, relativeCoordinate);
 }
Beispiel #2
0
 public static void Hover(UITestControl control)
 {
     Move(control);
 }
Beispiel #3
0
 public static void DoubleClick(UITestControl control)
 {
     control.DoubleClick(ModifierKeys.None, null);
 }
Beispiel #4
0
 public static void DoubleClick(UITestControl control, ModifierKeys modifierKeys)
 {
     control.DoubleClick(modifierKeys, null);
 }
 public UITestControl(UITestControl parent, ISearchContext parentSearchContext)
     : this(parent)
 {
     ParentSearchContext = parentSearchContext;
 }
Beispiel #6
0
 public static void Move(UITestControl control)
 {
     control.MoveToElement(null);
 }
Beispiel #7
0
 public static void Click(UITestControl control)
 {
     control.Click(MouseButtons.Left, ModifierKeys.None, null);
 }
Beispiel #8
0
 public static void SendKeys(UITestControl control, string text)
 {
     SendKeys(text, control, ModifierKeys.None);
 }
Beispiel #9
0
 public static void StopDragging(UITestControl control)
 {
     ControlToDrag.DragAndDropTo(control);
 }
Beispiel #10
0
 public static void StopDragging(UITestControl control, Point relativeCoordinate)
 {
     StopDragging(control, relativeCoordinate.X, relativeCoordinate.Y);
 }
Beispiel #11
0
 public static void StartDragging(UITestControl control)
 {
     ControlToDrag = control;
 }
Beispiel #12
0
 public static void MoveScrollWheel(UITestControl control, int wheelMoveCount, ModifierKeys modifierKeys)
 {
     throw new NotImplementedException();
 }
Beispiel #13
0
        public static void MoveScrollWheel(UITestControl control, int wheelMoveCount)
        {
            long currentPosition = control.ScrollWheelPosition;

            control.ScrollWheelPosition = currentPosition + (wheelMoveCount * 100);
        }
Beispiel #14
0
 public static void Hover(UITestControl control, Point relativeCoordinate)
 {
     Move(control, relativeCoordinate);
 }
Beispiel #15
0
 public static void Click(UITestControl control, MouseButtons button, ModifierKeys modifierKeys)
 {
     control.Click(button, modifierKeys, null);
 }
        internal void DragAndDropTo(UITestControl control)
        {
            BrowserWindow browserWindow = TopParent as BrowserWindow;

            new Actions(browserWindow.Driver).DragAndDrop(this.WebElement, control.WebElement).Perform();
        }
Beispiel #17
0
 public static void Click(UITestControl control, MouseButtons button, ModifierKeys modifierKeys, Point relativeCoordinate)
 {
     control.Click(button, modifierKeys, relativeCoordinate);
 }
Beispiel #18
0
 public static void SendKeys(UITestControl control, string text, ModifierKeys modifierKeys)
 {
     SendKeys(text, control, modifierKeys);
 }
Beispiel #19
0
 public static void Click(UITestControl control, Point screenCoordinate)
 {
     control.Click(MouseButtons.Left, ModifierKeys.None, screenCoordinate);
 }
 public UITestControl(UITestControl parent, IWebElement webElement)
     : this(parent)
 {
     privateWebElement = webElement;
 }
Beispiel #21
0
 public static void Move(UITestControl control, Point relativeCoordinate)
 {
     control.MoveToElement(relativeCoordinate);
 }