Trying to Drag an Element with the Following Code -
"WebElement baseElement = driver.findElement(By.xpath("Element ID");
Actions clicker = new Actions(driver);
clicker.moveToElement(baseElement).moveByOffset(20,0).click().perform();
Encountering an Issue where the Element is not Dragged to the Intended Offset Position
Instead, it Drags to the Maximum Possible End Regardless of the Offset Value.
Even though Dragging Successfully, the Element Snaps Back to its Original Position After a Second.
In Manual Testing, Able to Drag the Element as Desired Within Limits without Snapback.
This is Specifically for Dragging an Element on a Bar, Not Drag and Drop Functionality.
Attempted Various Alternative Drag Methods But None Resolved the Issue.
If anyone has Experienced this Issue Before, Please Share Your Solution.
Tested with Selenium Versions 2.27 to 2.40 on Firefox Versions 17ESR, 20, and 24ESR with Repetitive Problems.