DragAndDrop is not releasing the item | Selenium Forum
M
Posted on 24/03/2016
Hello All,

I have a scenario wherein i have to drag & drop an item to other place in a webpage, i am able to drag to the desired offset, but the problem is that WebDriver is not releasing the item, it keeps holding which resulting where ever i move my mouse pointer item gets dragged to that position.

WebElement dragObject = driver.findElement(By.xpath("//*[@id='1009_header_hd']"));
Actions act = new Actions(driver);
act.dragAndDropBy(dragObject, 300, 20).build().perform();

Thanks in advance.

M
Replied on 24/03/2016

[quote:2c4q75cl]//*[@id='1009_header_hd'][/quote:2c4q75cl]

is it a stable xpath?