appium-flutter-driver: FlutterDriver command timeout seems infinite
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);
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 4
- Comments: 21 (4 by maintainers)
@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.