@Test
public void dragSlider() throws InterruptedException {
System.setProperty("webdriver.chrome.driver", "/home/joy/Documents/Eclipse/Workspace/GETEC_Handson/mavenproject/lib/chromedriver");
WebDriver driver = new ChromeDriver();
driver.manage().window().maximize();
String destinationUrl = "https://jqueryui.com/slider/#rangemin";
driver.navigate().to(destinationUrl);
WebElement iframeXpath = driver.findElement(By.xpath("//div[@id='content']/iframe"));
driver.switchTo().frame(iframeXpath);
WebElement sliderXpath = driver.findElement(By.xpath("//div[@id='slider-range-min']/span"));
Actions act = new Actions(driver);
act.dragAndDropBy(sliderXpath, 378, 54).perform();
Thread.sleep(5000);
driver.close();
}