I can't imaging how to handle below type of slider option using selenium with java. There is no different xpaths for dropping locations. There should be different xpaths to use below option
Actions.dragAndDrop(Sourcelocator, Destinationlocator)
I can't imaging how to handle below type of slider option using selenium with java. There is no different xpaths for dropping locations. There should be different xpaths to use below option
Actions.dragAndDrop(Sourcelocator, Destinationlocator)
.click() on that slider will click on the middle. If you want to click to the side, you can click using X, Y offsets. First get the width of the slider and then adjust your X coordinate accordingly. I used this trick (in C# anyway) for testing a "scrub bar" in a web video player by clicking on the second-to-last pixel of the slider and making sure the next video "auto-rolled".
Here is some sample code from SQA StackExhange:
Actions builder = new Actions(driver);
builder.moveToElement(referenceElement, X, Y).click().build().perform();