Need to Perform Actions on seekbar


#1

Hi All,

I want to perform actions on seekbar which should move extreme left and extreme right of the seekbar. using selenium 2.53.1 and appium 4.1.2

code used:
public void Seekbar() {
AndroidElement seekBar = (AndroidElement) driver.findElement(By.id(“com.dai.xxxxxxx.dev:id/loan_amount_seekbar”));

System.out.println(seekBar.getRect());
System.out.println(seekBar.getLocation().getX());
System.out.println(seekBar.getLocation().getY());
System.out.println(seekBar.getSize().getHeight());
System.out.println(seekBar.getSize().getWidth());

new TouchAction(driver).press(1049,468).waitAction(3000).moveTo(29,372).release().perform();

unable to perform actions.please help thanks in advance.