Exemple #1
0
        internal static void DeskTopMouseClick(SeleniumWebControls control)
        {
            //Rectangle rect = control.BoundingRectangle;
            //double x = rect.X + rect.Width / 2;
            //double y = rect.Y + rect.Height / 2;

            //control.OwnerBrowser.Manager.Desktop.Mouse.HoverOver(new Point(x, y));
            //control.OwnerBrowser.Manager.Desktop.Mouse.Click(MouseClickType.LeftClick, new Point(x, y));

            MouseClick(control.ClickablePoint.X, control.ClickablePoint.Y);

            //MouseClick((int)x, (int)y);
        }
Exemple #2
0
        internal static void DeskTopMouseClick(SeleniumWebControls control)
        {

            //Rectangle rect = control.BoundingRectangle;
            //double x = rect.X + rect.Width / 2;
            //double y = rect.Y + rect.Height / 2;

            //control.OwnerBrowser.Manager.Desktop.Mouse.HoverOver(new Point(x, y));
            //control.OwnerBrowser.Manager.Desktop.Mouse.Click(MouseClickType.LeftClick, new Point(x, y));

            MouseClick(control.ClickablePoint.X, control.ClickablePoint.Y);

            //MouseClick((int)x, (int)y);
        }
 public Actions(Browser browser, SeleniumWebControls control)
 {
     WebDriver  = browser.BrowserHandle;
     WebElement = control.aWebElement;
 }
Exemple #4
0
 internal static void DeskTopMouseDrag(SeleniumWebControls control, int offsetX, int offsetY)
 {
     MouseDrag(control.ClickablePoint.X, control.ClickablePoint.Y, control.ClickablePoint.X + offsetX, control.ClickablePoint.Y + offsetY);
 }
Exemple #5
0
 public Actions(Browser browser, SeleniumWebControls control)
 {
     WebDriver = browser.BrowserHandle;
     WebElement = control.aWebElement;
 }
Exemple #6
0
 internal static void DeskTopMouseDrag(SeleniumWebControls control, int offsetX, int offsetY)
 {
     MouseDrag(control.ClickablePoint.X, control.ClickablePoint.Y, control.ClickablePoint.X + offsetX, control.ClickablePoint.Y + offsetY);
 }