Command not support: "flutter:waitForFirstFrame"
See original GitHub issueApologies for re-raising this issue since it has already been raised: #28 however that thread seems to have gone stale waiting for a response from the original raiser.
I am trying to run the example project here in this repo using the Java client. However the test fails as soon as it interacts with Flutter in the Appium Server. I have compiled the Kotlin Finder and I am using the example Flutter app under test.
My environment is: Intel MacOS BigSur Intellij 2020.3 Emulator: Pixel 3 API 29 Appium 1.20.2 Flutter 2.0.2 Dart 2.12.1
capabilities.setCapability(MobileCapabilityType.PLATFORM_NAME, "Android"); capabilities.setCapability(MobileCapabilityType.PLATFORM_VERSION, "10"); capabilities.setCapability(MobileCapabilityType.DEVICE_NAME, "emulator-5554"); capabilities.setCapability(MobileCapabilityType.AUTOMATION_NAME, "Flutter");
enableFlutterDriversExtension() is called within the example App.
The first run fails instantly on calling “flutter:waitForFirstFrame” subsequent runs fail after waiting 300 seconds, just like in the #28 issue.
My Appium Server logs: First Run, Second Run
Intellij Run logs: First Run, Second Run
Is there anything wrong with my environment?
Issue Analytics
- State:
- Created 3 years ago
- Comments:7
Top GitHub Comments
I couldn’t get this working on the remote CI machine. However, I ended up installing appium version 1.21.0-rc.1 which uses appium-flutter-driver 0.0.28 by default, and all is well.
@JessWeston thanks again. This worked locally. For what it’s worth, and for anyone who needs automation, I found the npe tool nice for editing package.json.
I did get a weird error when re-installing appium with --unsafe-perm=true, but it didn’t seem to make a difference…