public void DragAndDropRelativeAndToElement()
        {
            driver.Url = dragAndDropPage;
            IWebElement img1           = driver.FindElement(By.Id("test1"));
            IWebElement img2           = driver.FindElement(By.Id("test2"));
            Actions     actionProvider = new Actions(driver);

            actionProvider.DragAndDropToOffset(img1, 100, 100).Perform();
            actionProvider.Reset();
            actionProvider.DragAndDrop(img2, img1).Perform();
            Assert.AreEqual(img1.Location, img2.Location);
        }
Exemple #2
0
 public void Reset() => actions.Reset();