I have a piece of code that works fine with java-client(5.0.0-BETA6) and selenium-java version 3.3.1. But when i upgraded to java-client version 6.1.0 and selenium-java version 3.14.0, the code started throwing errors. Need help in fixing the issue.
AndroidDriver<AndroidElement> driver=Base.capabilities();
driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);
TouchAction t=new TouchAction(driver);
driver.findElementByXPath("//android.widget.TextView[@text='Views']").click();
driver.findElementByXPath("//android.widget.TextView[@text='Date Widgets']").click();
driver.findElementByAndroidUIAutomator("text(\"2. Inline\")").click();
driver.findElementByXPath("//*[@content-desc='9']").click();
t.press(driver.findElementByXPath("//*[@content-desc='15']")).waitAction(2000).moveTo(driver.findElementByXPath("//*[@content-desc='45']")).release().perform();
The error i am getting is -
Any help in resolving this will be appreciated. Thanks.
Thanks a lot. That helps in fixing the code that I had. But the changes are multiple. Is it very frequent that so many changes occur from one version to another. The code I had was almost completely changed in order for it to work. If changes between versions are so frequent then it would be very difficult to keep a track.
@vaibhav2701
If changes between versions are so frequent then it would be very difficult to keep a track
We first mark the methods deprecated and then remove in the next release.
https://github.com/appium/java-client/commit/dea2a7d4b4be0420c5a3c7aeeeb0a07dc7979f71
U jumped from 5.0.0-BETA6 to 6.1.0. Version 6.0.0 removed the deprecated methods.
You are right. I guess the jump between versions was indeed steep. :)
Hi sai, facing the same issue...unable to resolve my java-cient version is 6.1.0
Most helpful comment
https://github.com/appium/java-client/blob/master/src/test/java/io/appium/java_client/ios/IOSTouchTest.java#L65-L70