Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [Test]
- public void Droppable()
- {
- IWebElement droppable = driver.FindElement(By.Id("menu-item-141"));
- droppable.Click();
- IWebElement drag = driver.FindElement(By.Id("draggableview"));
- Actions builder = new Actions(driver);
- IWebElement drop = driver.FindElement(By.Id("droppableview"));
- builder.DragAndDrop(drag, drop);
- builder.Build().Perform();
- IWebElement dropped = driver.FindElement(By.XPath("//*[@id=\"droppableview\"]/p"));
- Assert.AreEqual("Dropped!", dropped.Text);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement