Saturday, November 21, 2026
HomeiOS DevelopmentSearch is just not working utilizing Touchactions for iOS Java

Search is just not working utilizing Touchactions for iOS Java

[ad_1]

Im capable of verify the aspect is current, and visual, however it’s not transferring the seekbar to finish or in between, the identical working for Android machine.

            WebElement seekBar = iOSdriver.findElement(By.xpath(
                    "/XCUIElementTypeApplication/XCUIElementTypeWindow[2]"));
            if (seekBar.isDisplayed()) {
                System.out.println(seekBar.isEnabled());
                int startX = seekBar.getLocation().getX();
                int yAxis = seekBar.getLocation().getY();
                int endX= (startX+seekBar.getSize().getWidth());
                TouchAction act = new TouchAction(iOSdriver);
                act.press(PointOption.level(startX, yAxis)).moveTo(PointOption.level(endX1, yAxis)).launch()
                        .carry out();}

[ad_2]

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments