예제 #1
0
        public void BeAbleToSelectGridElement()
        {
            var homePage = new HomePage(this.Driver);

            homePage.Open();
            homePage.JavaScriptClick(homePage.InteractionsSection);

            var interactionsPage = new InteractionsPage(this.Driver);

            interactionsPage.JavaScriptClick(interactionsPage.SelectableLink);

            var selectablePage = new SelectablePage(this.Driver);

            selectablePage.AssertSelectAndDragColor();
        }
예제 #2
0
        public void BeAbleToDragAndDropElement()
        {
            var homePage = new HomePage(this.Driver);

            homePage.Open();
            homePage.JavaScriptClick(homePage.InteractionsSection);

            var interactionsPage = new InteractionsPage(this.Driver);

            interactionsPage.JavaScriptClick(interactionsPage.DroppableLink);

            var droppablePage = new DroppablePage(this.Driver);

            droppablePage.AssertDragAndDrop();
        }
예제 #3
0
        public void BeAbleToResizeElement(int offsetX, int offsetY, int expectedSizeWidth, int expectedSizeHeight)
        {
            var homePage = new HomePage(this.Driver);

            homePage.Open();
            homePage.JavaScriptClick(homePage.InteractionsSection);

            var interactionsPage = new InteractionsPage(this.Driver);

            interactionsPage.JavaScriptClick(interactionsPage.ResizableLink);

            var resizablePage = new ResizablePage(this.Driver);

            resizablePage.AssertsResize(offsetX, offsetY, expectedSizeWidth, expectedSizeHeight);
        }
예제 #4
0
        public void BeAbleToSortElement()
        {
            var homePage = new HomePage(this.Driver);

            homePage.Open();
            homePage.JavaScriptClick(homePage.InteractionsSection);

            var interactionsPage = new InteractionsPage(this.Driver);

            interactionsPage.JavaScriptClick(interactionsPage.SortableLink);

            var sortablePage = new SortablePage(this.Driver);

            sortablePage.AssertReorderElements();
        }