diff --git a/lib/appium_lib/android/helper.rb b/lib/appium_lib/android/helper.rb index 75a0499a..71fa539c 100644 --- a/lib/appium_lib/android/helper.rb +++ b/lib/appium_lib/android/helper.rb @@ -403,13 +403,12 @@ def page # JavaScript code from https://github.com/appium/appium/blob/master/app/android.js # # ```javascript - # Math.round((duration * 1000) / 200) - # (.20 * 1000) / 200 = 1 + # Math.round(1.0/28.0 * 28) = 1 # ``` # # We want steps to be exactly 1. If it's zero then a tap is used instead of a swipe. def fast_duration - 0.20 + 0.0357 # 1.0/28.0 end # Lists package, activity, and adb shell am start -n value for current app.