Also, worst case, if you aren't specifically testing the dragging of the slider functionality but just need to adjust it to test something else, and the slider component you have access to its source code (internal component used in organization/company), could ask the developers to add a back door API (in javascript, etc.) to fake the slider movement so that you can then move on to test what you are really trying to test. Had to do something like that once for a custom component at my workplace.