Ejemplo n.º 1
0
        public void DroppableTarget()
        {
            var droppablePage = new DroppablePage(this.driver);

            droppablePage.DragAndDrop();
            droppablePage.AssertTargetAttributeValue("ui-widget-header ui-droppable ui-state-highlight");


            droppablePage.DragAndDrop(71, -49);
            droppablePage.AssertTargetAttributeValue("ui-widget-header ui-droppable ui-state-highlight");

            droppablePage.DragAndDrop(71, 0);
            droppablePage.AssertTargetAttributeValue("ui-widget-header ui-droppable ui-state-highlight");

            droppablePage.DragAndDrop(80, 50);
            droppablePage.AssertTargetAttributeValue("ui-widget-header ui-droppable ui-state-highlight");

            droppablePage.DragAndDrop(219, -49);
            droppablePage.AssertTargetAttributeValue("ui-widget-header ui-droppable ui-state-highlight");

            droppablePage.DragAndDrop(180, 20);
            droppablePage.AssertTargetAttributeValue("ui-widget-header ui-droppable ui-state-highlight");

            droppablePage.DragAndDrop(219, 0);
            droppablePage.AssertTargetAttributeValue("ui-widget-header ui-droppable ui-state-highlight");

            droppablePage.DragAndDrop(219, 99);
            droppablePage.AssertTargetAttributeValue("ui-widget-header ui-droppable ui-state-highlight");

            droppablePage.DragAndDrop(71, 99);
            droppablePage.AssertTargetAttributeValue("ui-widget-header ui-droppable ui-state-highlight");
        }
Ejemplo n.º 2
0
        public void DroppableFirstTry()
        {
            var droppablePage = new DroppablePage(this.driver);

            droppablePage.DragAndDrop();

            droppablePage.AssertTargetAttributeValue("ui-widget-header ui-droppable ui-state-highlight");
        }
Ejemplo n.º 3
0
        public void DroppableFourthTest()
        {
            var droppablePage = new DroppablePage(driver);

            droppablePage.NavigateToSecondTab();
            droppablePage.DragAndDrop();

            droppablePage.AssertTargetAttributeValue("ui-widget-header ui-droppable");
        }
Ejemplo n.º 4
0
        public void DroppableOutsideTarget()
        {
            var droppablePage = new DroppablePage(this.driver);

            droppablePage.DragAndDrop(280, 40);
            droppablePage.AssertTargetAttributeValue("ui-widget-header ui-droppable");

            droppablePage.DragAndDrop(150, 170);
            droppablePage.AssertTargetAttributeValue("ui-widget-header ui-droppable");

            droppablePage.DragAndDrop(50, 60);
            droppablePage.AssertTargetAttributeValue("ui-widget-header ui-droppable");

            droppablePage.DragAndDrop(-40, -30);
            droppablePage.AssertTargetAttributeValue("ui-widget-header ui-droppable");

            droppablePage.DragAndDrop(71, -50);
            droppablePage.AssertTargetAttributeValue("ui-widget-header ui-droppable");

            droppablePage.DragAndDrop(70, 0);
            droppablePage.AssertTargetAttributeValue("ui-widget-header ui-droppable");

            droppablePage.DragAndDrop(1000, 1000);
            droppablePage.AssertTargetAttributeValue("ui-widget-header ui-droppable");

            droppablePage.DragAndDrop(219, -50);
            droppablePage.AssertTargetAttributeValue("ui-widget-header ui-droppable");

            droppablePage.DragAndDrop(220, 0);
            droppablePage.AssertTargetAttributeValue("ui-widget-header ui-droppable");

            droppablePage.DragAndDrop(219, 100);
            droppablePage.AssertTargetAttributeValue("ui-widget-header ui-droppable");

            droppablePage.DragAndDrop(71, 100);
            droppablePage.AssertTargetAttributeValue("ui-widget-header ui-droppable");
        }