Flutter Driver scroll Until Error
See original GitHub issueWhen using appium flutter driver with web driver io and scroll until element is visible we are getting the below error.
unknown error: An unknown server-side error occurred while processing the command. Original error: Cannot execute command scroll, server reponse { "isError": true, "response": "Uncaught extension error while executing scroll: IntegerDivisionByZeroException\n#0 Duration.~/ (dart:core/duration.dart:219:24)\n#1 CommandHandlerFactory._scroll (package:flutter_driver/src/common/handler_factory.dart:369:51)\n<asynchronous suspension>\n#2 FlutterDriverExtension.call (package:flutter_driver/src/extension/extension.dart:372:31)\n<asynchronous suspension>\n#3 BindingBase.registerServiceExtension.<anonymous closure> (package:flutter/src/foundation/binding.dart:851:18)\n<asynchronous suspension>\n", "type": "_extensionType", "method": "ext.flutter.driver" }
Issue Analytics
- State:
- Created a year ago
- Comments:6 (3 by maintainers)
I see. I read the flutter’s code.
The scroll’s duration was “microseconds”, so it should not have removed the
*1000
, but others should. https://github.com/flutter/flutter/blob/master/packages/flutter_driver/lib/src/common/gesture.dart#L33-L38v1.7.1 has the fix