boolean canScrollMore = (Boolean) ((JavascriptExecutor) driver).executeScript("mobile: scrollGesture", ImmutableMap.of(
"left", 100, "top", 100, "width", 200, "height", 200,
"direction", "down",
"percent", 3.0
));
Showing error in Immutable Maps "OF" The method of(K, V, K, V, K, V, K, V, K, V) in the type ImmutableMap is not applicable for the arguments (String, int, String, int, String, int, String, int, String, String, String, double)
Thank you, it works also from me, I had the same problem with ImmutableMap