Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- WebElement seekBar = getDriver().findElement(By.xpath(<elementXpath>));
- int startX = seekBar.getLocation().getX();
- int endX = seekBar.getSize().getWidth();
- int yAxis = seekBar.getLocation().getY();
- int end50X = (int) (startX + ((seekBar.getSize().getWidth()) * 0.51));
- TouchAction action = new TouchAction(getDriver());
- action.press(startX, yAxis).moveTo(end50X, yAxis).release().perform();
Add Comment
Please, Sign In to add comment