• tahseenat

Working with Sliders

To drag and drop any element on another element, We can use moveToElement or dragAndDrop methods of Actions class. Same way, To move an element by specific X, Y Pixel offset, We can use dragAndDropBy method of Actions class. To select multiple JQuery Items, We can use clickAndHold method of Actions class. So Actions class has many different methods to perform this kind of tricky operation on your web application using selenium WebDriver.

Nowadays, many web applications are using sliders to set/change price range limits to filter records. You can find this kind of price range sliders on E-Commerce websites. Actions class can help us to move this kind of sliders In selenium web driver test case. We can do the same thing In two different ways or I can say using different methods of Actions class as shown In below example.


WebDriver driver = new FirefoxDriver();driver.get("http://jqueryui.com/resources/demos/slider/default.html");driver.manage().timeouts().implicitlyWait(20L, TimeUnit.SECONDS);WebElement slider = driver.findElement(By.xpath("//*[@id='slider']/a"));Actions action = new Actions(driver);action.dragAndDropBy(source, xOffset, yOffset).perform();

Wizdom QA has created an end to end course curriculum for the SDET profile. Our students will receive in-depth knowledge of the latest QA tools, techniques and programming languages.

As a registered student, you will learn Selenium WebDriver, Appium for Mobile App automation, API automation, CI/CD integration and many more.

We have studied the market carefully and understood that there is a huge demand for good SDET profiles, however, finding the right candidate is quite hard because of the lack of right skills and experience among job seekers.


Therefore we are here with 11+ years of hands-on and training 800+ students to experience to create one-stop-shop course content for Software Development Engineering in Test (SDETs).


Belgard Square West, Tallaght,

Dublin, Ireland

Phone & WhatsApp

+353 894740999




Additional Links

Wizdom QA Trainings | All rights reserved | 2019-20 ©

  • Facebook Social Icon