Click here to Skip to main content
15,898,035 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have tried this but its not working

What I have tried:

browser.driver.get("http://dhtmlgoodies.com/submitted-scripts/i-google-like-drag-drop/");

// browser.driver.sleep(10000);
var source=".//*[@id='block-1']/h1";

browser.driver.findElement(By.xpath(source));
var dest= ".//*[@id='block-3']/h1";
browser.driver.findElement(By.xpath(dest));
// browser.actions.dragAndDrop(source,dest).perform();


browser.actions().
mouseDown(source).
mouseMove(dest).
mouseUp().
perform();
Posted

1 solution

i have tried this and this is working

browser.actions().dragAndDrop(columnTobeChoosed, columnTobeDragAfter).perform();
 
Share this answer
 

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