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.

Command not support: "flutter:waitForFirstFrame"

See original GitHub issue

Apologies 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:closed
  • Created 3 years ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
doc-rj-celltrakcommented, Apr 12, 2021

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.

1reaction
doc-rj-celltrakcommented, Apr 9, 2021

@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.

cd /usr/local/lib/node_modules/appium
npm install -g npe
npe dependencies.appium-flutter-driver 0.0.28

I did get a weird error when re-installing appium with --unsafe-perm=true, but it didn’t seem to make a difference…

> appium@1.20.2 prepare
> gulp prepublish

[11:45:38] No gulpfile found
npm ERR! code 1
npm ERR! path /usr/local/lib/node_modules/appium
npm ERR! command failed
npm ERR! command sh -c gulp prepublish
Read more comments on GitHub >

github_iconTop Results From Across the Web

Command not support: "flutter:waitForFirstFrame" #146 - GitHub
I am trying to run the example project here in this repo using the Java client. However the test fails as soon as...
Read more >
Is there any callback to tell me when "build" function is done in ...
General solution. Just to clear things up, I did not expect this question to attract so much attention. Hence, I only answered for...
Read more >
waitUntilFirstFrameRasterized method - FlutterDriver class
Waits until the next dart:ui.PlatformDispatcher.onReportTimings is called. Use this method to wait for the first frame to be rasterized during the app launch....
Read more >
flutter run - Fig.io
Run your Flutter app on an attached device.
Read more >
Splash Screens in Flutter - Medium
Android Start Screens · When FlutterFragment is in the first Activity displayed by the app, because pre-warming a FlutterEngine would have no impact...
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