Click here to Skip to main content
15,886,362 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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();
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900