appium-flutter-driver icon indicating copy to clipboard operation
appium-flutter-driver copied to clipboard

Issue running a default flutter project (counter) on the latest Flutter SDK version

Open hermankravchenko-ama opened this issue 1 year ago • 8 comments

Hello,

We have tried following Flutter SDK versions:

  1. 3.13.9
  2. 3.16.9
  3. 3.7.12

Default counter example. We compile build for Android (APK) with --debug or --profile.

Use the same code as in the node JS example and the issue is the following

"ext.flutter.driver" is not found in "extensionRPCs" ["ext.ui.window.scheduleFrame","ext.ui.window.reinitializeShader","ext.ui.window.impellerEnabled","ext.dart.io.getH ttpEnableTimelineLogging","ext.dart.io.setHttpEnableTimelineLogging","ext.dart.io.httpEnableTimelineLogging","ext.dart.io.getSocketProfile","ext.dart.io.startSocketProfiling","ext.dart .io.pauseSocketProfiling","ext.dart.io.socketProfilingEnabled","ext.dart.io.clearSocketProfile","ext.dart.io.getVersion","ext.dart.io.getHttpProfile","ext.dart.io.getHttpProfileRequest ","ext.dart.io.clearHttpProfile","ext.flutter.reassemble","ext.flutter.exit","ext.flutter.connectedVmServiceUri","ext.flutter.activeDevToolsServerAddress","ext.flutter.platformOverride ","ext.flutter.brightnessOverride","ext.flutter.timeDilation","ext.flutter.evict","ext.flutter.invertOversizedImages","ext.flutter.debugPaint","ext.flutter.debugPaintBaselinesEnabled", "ext.flutter.repaintRainbow","ext.flutter.debugDumpLayerTree","ext.flutter.debugDisableClipLayers","ext.flutter.debugDisablePhysicalShapeLayers","ext.flutter.debugDisableOpacityLayers" ,"ext.flutter.debugDumpRenderTree","ext.flutter.debugDumpSemanticsTreeInTraversalOrder","ext.flutter.debugDumpSemanticsTreeInInverseHitTestOrder","ext.flutter.profileRenderObjectPaints ","ext.flutter.profileRenderObjectLayouts","ext.flutter.debugDumpApp","ext.flutter.debugDumpFocusTree","ext.flutter.showPerformanceOverlay","ext.flutter.didSendFirstFrameEvent","ext.fl utter.didSendFirstFrameRasterizedEvent","ext.flutter.fastReassemble","ext.flutter.profileWidgetBuilds","ext.flutter.profileUserWidgetBuilds","ext.flutter.debugAllowBanner","ext.flutter .inspector.structuredErrors","ext.flutter.inspector.show","ext.flutter.inspector.trackRebuildDirtyWidgets","ext.flutter.inspector.trackRepaintWidgets","ext.flutter.inspector.disposeAll Groups","ext.flutter.inspector.disposeGroup","ext.flutter.inspector.isWidgetTreeReady","ext.flutter.inspector.disposeId","ext.flutter.inspector.setPubRootDirectories","ext.flutter.insp ector.addPubRootDirectories","ext.flutter.inspector.removePubRootDirectories","ext.flutter.inspector.getPubRootDirectories","ext.flutter.inspector.setSelectionById","ext.flutter.inspec tor.getParentChain","ext.flutter.inspector.getProperties","ext.flutter.inspector.getChildren","ext.flutter.inspector.getChildrenSummaryTree","ext.flutter.inspector.getChildrenDetailsSu btree","ext.flutter.inspector.getRootWidget","ext.flutter.inspector.getRootWidgetSummaryTree","ext.flutter.inspector.getRootWidgetSummaryTreeWithPreviews","ext.flutter.inspector.getDet ailsSubtree","ext.flutter.inspector.getSelectedWidget","ext.flutter.inspector.getSelectedSummaryWidget","ext.flutter.inspector.isWidgetCreationTracked","ext.flutter.inspector.screensho t","ext.flutter.inspector.getLayoutExplorerNode","ext.flutter.inspector.setFlexFit","ext.flutter.inspector.setFlexFactor","ext.flutter.inspector.setFlexProperties"]

Any ideas if this plugin/driver is still supported on newer version of Flutter SDK? Is this something that will be supported longterm?

Thanks

hermankravchenko-ama avatar Feb 05 '24 20:02 hermankravchenko-ama

It usually means the Flutter app does not contain ext.flutter.driver package.

In our next release, we will be planning to extend the deprecation policy to cover the flutter_driver package in addition to already supported packages, flutter and flutter_test.

https://medium.com/flutter/whats-new-in-flutter-3-16-dba6cb1015d1

~So, I guess they no longer support the flutter_driver, which is used by this driver to communicate with Flutter.~ <- this was wrong. Still flutter team has the flutter_driver. But for the error message means the package is not in your app under test right now.

KazuCocoa avatar Feb 06 '24 03:02 KazuCocoa

Hello,

I think it is used in a "new way" for flutter web integration testing only

Any thoughts if a migration like this is possible/feasible ?

Get Outlook for Androidhttps://aka.ms/AAb9ysg


From: Kazuaki Matsuo @.> Sent: Monday, February 5, 2024 8:42:21 PM To: appium/appium-flutter-driver @.> Cc: Herman Kravchenko @.>; Author @.> Subject: Re: [appium/appium-flutter-driver] Issue running a default flutter project (counter) on the latest Flutter SDK version (Issue #658)

Alert: This email originated from outside of the organization. Please BE CAUTIOUS before clicking any link or attachment.

It usually means the Flutter app does not contain ext.flutter.driver package.

In our next release, we will be planning to extend the deprecation policy to cover the flutter_driver package in addition to already supported packages, flutter and flutter_test.

https://medium.com/flutter/whats-new-in-flutter-3-16-dba6cb1015d1

So, I guess they no longer support the flutter_driver, which is used with this driver to communicate with Flutter.

— Reply to this email directly, view it on GitHubhttps://github.com/appium/appium-flutter-driver/issues/658#issuecomment-1928730242, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BFOGVIYUIYOYK54V7JNUDD3YSGRB3AVCNFSM6AAAAABC2ZCPQWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMRYG4ZTAMRUGI. You are receiving this because you authored the thread.Message ID: @.***>

hermankravchenko-ama avatar Feb 06 '24 04:02 hermankravchenko-ama

If you meant the integration_test package transition as this driver, then I have no good idea since I don't have much personal time to spend on this project. I guess it can but the behavior may not be the same with current behavior.

KazuCocoa avatar Feb 06 '24 04:02 KazuCocoa

It usually means the Flutter app does not contain ext.flutter.driver package.

In our next release, we will be planning to extend the deprecation policy to cover the flutter_driver package in addition to already supported packages, flutter and flutter_test.

https://medium.com/flutter/whats-new-in-flutter-3-16-dba6cb1015d1

~So, I guess they no longer support the flutter_driver, which is used by this driver to communicate with Flutter.~ <- this was wrong. Still flutter team has the flutter_driver. But for the error message means the package is not in your app under test right now.

We do have flutter driver as a dependency and initiated in the main. The commands that we used to build the APK is

flutter build apk --debug and flutter build apk --profile

github_1 github_2

hermankravchenko-ama avatar Feb 06 '24 16:02 hermankravchenko-ama

Any thoughts @KazuCocoa

hermankravchenko-ama avatar Feb 07 '24 17:02 hermankravchenko-ama

No idea. Perhaps we need to take a look at Flutter repository. The error itself was ext.flutter.driver module was not loaded in the test package (usually), so module loading or around in Flutter team's update could affect.

KazuCocoa avatar Feb 07 '24 17:02 KazuCocoa

@KazuCocoa Any updates here?

Just curious

hermankravchenko-ama avatar Mar 06 '24 21:03 hermankravchenko-ama

No. I don't work on this

KazuCocoa avatar Mar 07 '24 09:03 KazuCocoa