question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

FlutterDriver command timeout seems infinite

See original GitHub issue

When 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:closed
  • Created 3 years ago
  • Reactions:4
  • Comments:21 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
yanivamramcommented, Mar 8, 2022

@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

1reaction
baovu2512commented, Nov 13, 2020

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found