Interactions - Touch - LongPress - int expected but double received


I have encountered the following issue when running my automation tests:.

org.openqa.selenium.InvalidArgumentException: java.lang.NumberFormatException: Expected an int but was 1085.5 at line 1 column 44 path $.params.y
Build info: version: ‘3.141.59’, revision: ‘e82be7d358’, time: ‘2018-11-14T08:17:03’

While doing my research I have found that a fix for this issue has been made in version 1.18.1 -

I have installed the version using npm install -g [email protected] however the test still returns the same error.

I use Appium Java Client 7.3.0 in my pom.xml:


Thank you for the help in advance Artyom.

Please attach the full server log