コード例 #1
0
        public void CAP_TC7_Create_ArticleContentResize()
        {
            var createArticlePage = new CreateArticlePage(driver);

            createArticlePage.NavigateTo();

            Actions builder = new Actions(this.driver);
            var     action  = builder.MoveToElement(createArticlePage.Content)
                              .MoveByOffset((createArticlePage.Content.Size.Width / 2) - 2, (createArticlePage.Content.Size.Height / 2) - 2)
                              .ClickAndHold()
                              .MoveByOffset(300, 300)
                              .Release();

            action.Perform();
            createArticlePage.AssertCreateArticlePageIsDisplayed("Create Article");
            createArticlePage.AssertCreateArticleComtentresized(300);
        }