FlutterDriver command timeout seems infinite
See original GitHub issueWhen I execute a FlutterDriver command using a FlutterElement that is either not displayed on the phone or not on the phone, the driver does not timeout; it stays stuck in an infinite loop. I’m not aware of any timeouts I can set to solve this problem. I set the implicit wait time using the following code:
driver.manage().timeouts().implicitlyWait(seconds, TimeUnit.SECONDS);
Issue Analytics
- State:
- Created 3 years ago
- Reactions:4
- Comments:21 (4 by maintainers)
Top Results From Across the Web
FlutterDriver command timeout seems infinite #114 - GitHub
I am using appium flutter driver + Java. It just keeps on looking for the object to infinity. Do we have any solution...
Read more >Flutter/Dart wait for a few seconds in unit testing - Stack Overflow
I am writing a timer app. In unit testing how do I wait for few seconds to test if my timer is working...
Read more >Flutter Widget and Integration Tests — some Surprises about ...
I was surprised — 10 minutes is a long time to wait for the end of an animation. The first widget test just...
Read more >FlutterDriver class - flutter_driver library - Flutter - Dart API docs
Sends command to the Flutter Driver extensions. This must be implemented by subclass. sendTextInputAction(TextInputAction action, {Duration? timeout} ...
Read more >Flutter 1.12.13 更改日志
39579 [flutter_tools] Add a timeout to another showBuildSettings command ... 40715 [Flutter Driver] Simplified the serialization/deserialization logic of ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@ravireddy07 Sorry for the late response On my case, it seems like the problem was a Flutter futures that didn’t complete For example, if you have an animation that never ends or alike, the appium-flutter-driver won’t be able to find the element, while on the appium server log you will see the response which include “future not completed”
See also a solution that might workaround the issue at: https://github.com/flutter/flutter/issues/34503#issuecomment-503545683
Hope that could be helpful on your case
I met the same issue, so I change the waitFor method to return element want to search with timeout, you can check it out here https://github.com/truongsinh/appium-flutter-driver/pull/111.