Here its my code:
a = driver.Findelement(By.XPath("Element1"))); b = driver.Findelement(By.XPath("Element2"))); Thread.Sleep(3000); action.ClickAndHold(a).MoveToElement(b).Release().Perform();
This Drag and Drop Action performed well. But when other drag and drop action try to runs, The first action are also Running.
Actually my test case contains sequence of drag and Drop Operations, While Running the Testcase, First drag and drop operations performed correctly, When the sequence coming into second drag and drop operation, Both(second and first dragndrop) action are also performing.(for ex: 1. Drag and drop the image 2. Drag and Drop the Data. When 2nd test case is perform simultaneously 1st one also Running. So that both DragnDrop working simultaneously)
Due to this my test case got failed.
Note: Recently i have done Latest update on Nunit(3.10) Before that its working Fine.
What I have tried:
i have tried the following codes:
action.DragAndDrop(a,b).build().perform();
action.ClickAndHold(a).MoveToElement(b,5,5).Release().Perform();
action.ClickAndHold(a).MoveToElement(b).MoveByOffset(5,5).Release().Perform();