How to handle seekbar element of android device

Hi,

Has anyone work with Seekbar element . Please let me know how to handle the element

Regards,
Nishant Singh

Perform swipe action on the seek-bar…
That might work.
Thanks,
Sudhanva

No its not working I already tried it.

Hi guys,
These is easy way to use seekbar to move upto some specific postion with below code
//Locating seekbar using resource id WebElement seek_bar=driver.findElement(By.id(“seek_bar”)); // get start co-ordinate of seekbar int start=seek_bar.getLocation().getX(); //Get width of seekbar int end=seek_bar.getSize().getWidth(); //get location of seekbar vertically int y=seek_bar.getLocation().getY();
// Select till which position you want to move the seekbar
TouchAction action=new TouchAction(driver);

//Move it 60%
int moveTo=(int)(end*0.6);
action.press(start,y).moveTo(moveTo,y).release().perform();