VMServiceFlutterDriver class
An implementation of the Flutter Driver over the vmservice protocol.
- Inheritance
- 
    - Object
- FlutterDriver
- VMServiceFlutterDriver
 
Constructors
- VMServiceFlutterDriver.connectedTo(VmService _serviceClient, Isolate _appIsolate, {bool printCommunication = false, bool logCommunicationToFile = true})
- Creates a driver that uses a connection provided by the given serviceClient and appIsolate.
Properties
- appIsolate → Isolate
- 
  Getter of appIsolate.
  no setteroverride
- hashCode → int
- 
  The hash code for this object.
  no setterinherited
- logFilePathName → String
- 
  Getter for file pathname where logs are written when _logCommunicationToFile is true.
  no setter
- runtimeType → Type
- 
  A representation of the runtime type of the object.
  no setterinherited
- serviceClient → VmService
- 
  Getter of serviceClient.
  no setteroverride
- webDriver → WebDriver
- 
  Getter of webDriver.
  no setteroverride
Methods
- 
  checkHealth({Duration? timeout}) → Future< Health> 
- 
  Checks the status of the Flutter Driver extension.
  inherited
- 
  clearTimeline({Duration timeout = kUnusuallyLongTimeout}) → Future< void> 
- 
  Clears all timeline events recorded up until now.
  override
- 
  close() → Future< void> 
- 
  Closes the underlying connection to the VM service.
  override
- 
  enterText(String text, {Duration? timeout}) → Future< void> 
- 
  Enters textinto the currently focused text input, such as the EditableText widget.inherited
- 
  forceGC() → Future< void> 
- 
  Force a garbage collection run in the VM.
  override
- 
  getBottomLeft(SerializableFinder finder, {Duration? timeout}) → Future< DriverOffset> 
- 
  Returns the point at the bottom left of the widget identified by finder.inherited
- 
  getBottomRight(SerializableFinder finder, {Duration? timeout}) → Future< DriverOffset> 
- 
  Returns the point at the bottom right of the widget identified by finder.inherited
- 
  getCenter(SerializableFinder finder, {Duration? timeout}) → Future< DriverOffset> 
- 
  Returns the point at the center of the widget identified by finder.inherited
- 
  getLayerTree({Duration? timeout}) → Future< LayerTree> 
- 
  Returns a dump of the layer tree.
  inherited
- 
  getRenderObjectDiagnostics(SerializableFinder finder, {int subtreeDepth = 0, bool includeProperties = true, Duration? timeout}) → Future< Map< String, Object?> >
- 
  Returns a JSON map of the DiagnosticsNode that is associated with the
RenderObject identified by finder.inherited
- 
  getRenderTree({Duration? timeout}) → Future< RenderTree> 
- 
  Returns a dump of the render tree.
  inherited
- 
  getSemanticsId(SerializableFinder finder, {Duration? timeout}) → Future< int> 
- 
  Retrieves the semantics node id for the object returned by finder, or the nearest ancestor with a semantics node.inherited
- 
  getText(SerializableFinder finder, {Duration? timeout}) → Future< String> 
- 
  Returns the text in the Textwidget located byfinder.inherited
- 
  getTopLeft(SerializableFinder finder, {Duration? timeout}) → Future< DriverOffset> 
- 
  Returns the point at the top left of the widget identified by finder.inherited
- 
  getTopRight(SerializableFinder finder, {Duration? timeout}) → Future< DriverOffset> 
- 
  Returns the point at the top right of the widget identified by finder.inherited
- 
  getVmFlags() → Future< List< Map< >String, dynamic> >
- 
  Returns the Flags set in the Dart VM as JSON.
  override
- 
  getWidgetDiagnostics(SerializableFinder finder, {int subtreeDepth = 0, bool includeProperties = true, Duration? timeout}) → Future< Map< String, Object?> >
- 
  Returns a JSON map of the DiagnosticsNode that is associated with the
Widget identified by finder.inherited
- 
  noSuchMethod(Invocation invocation) → dynamic 
- 
  Invoked when a nonexistent method or property is accessed.
  inherited
- 
  requestData(String? message, {Duration? timeout}) → Future< String> 
- 
  Sends a string and returns a string.
  inherited
- 
  runUnsynchronized<T> (Future< T> action(), {Duration? timeout}) → Future<T> 
- 
  actionwill be executed with the frame sync mechanism disabled.inherited
- 
  screenshot({ScreenshotFormat format = ScreenshotFormat.png}) → Future< List< int> >
- 
  Take a screenshot.
  inherited
- 
  scroll(SerializableFinder finder, double dx, double dy, Duration duration, {int frequency = 60, Duration? timeout}) → Future< void> 
- 
  Tell the driver to perform a scrolling action.
  inherited
- 
  scrollIntoView(SerializableFinder finder, {double alignment = 0.0, Duration? timeout}) → Future< void> 
- 
  Scrolls the Scrollable ancestor of the widget located by finderuntil the widget is completely visible.inherited
- 
  scrollUntilVisible(SerializableFinder scrollable, SerializableFinder item, {double alignment = 0.0, double dxScroll = 0.0, double dyScroll = 0.0, Duration? timeout}) → Future< void> 
- 
  Repeatedly scroll the widget located by scrollablebydxScrollanddyScrolluntilitemis visible, and then use scrollIntoView to ensure the item's final position matchesalignment.inherited
- 
  sendCommand(Command command) → Future< Map< String, dynamic> >
- 
  Sends commandto the Flutter Driver extensions. This must be implemented by subclass.override
- 
  sendTextInputAction(TextInputAction action, {Duration? timeout}) → Future< void> 
- 
  Simulate the user posting a text input action.
  inherited
- 
  setSemantics(bool enabled, {Duration? timeout}) → Future< bool> 
- 
  Turns semantics on or off in the Flutter app under test.
  inherited
- 
  setTextEntryEmulation({required bool enabled, Duration? timeout}) → Future< void> 
- 
  Configures text entry emulation.
  inherited
- 
  startTracing({List< TimelineStream> streams = const <TimelineStream>[TimelineStream.all], Duration timeout = kUnusuallyLongTimeout}) → Future<void> 
- 
  Starts recording performance traces.
  override
- 
  stopTracingAndDownloadTimeline({Duration timeout = kUnusuallyLongTimeout, int? startTime, int? endTime}) → Future< Timeline> 
- 
  Stops recording performance traces and downloads the timeline.
  override
- 
  tap(SerializableFinder finder, {Duration? timeout}) → Future< void> 
- 
  Taps at the center of the widget located by finder.inherited
- 
  toString() → String 
- 
  A string representation of this object.
  inherited
- 
  traceAction(Future action(), {List< TimelineStream> streams = const <TimelineStream>[TimelineStream.all], bool retainPriorEvents = false}) → Future<Timeline> 
- 
  Runs actionand outputs a performance trace for it.override
- 
  waitFor(SerializableFinder finder, {Duration? timeout}) → Future< void> 
- 
  Waits until finderlocates the target.inherited
- 
  waitForAbsent(SerializableFinder finder, {Duration? timeout}) → Future< void> 
- 
  Waits until findercan no longer locate the target.inherited
- 
  waitForCondition(SerializableWaitCondition waitCondition, {Duration? timeout}) → Future< void> 
- 
  Waits until the given waitConditionis satisfied.inherited
- 
  waitForTappable(SerializableFinder finder, {Duration? timeout}) → Future< void> 
- 
  Waits until finderis tappable.inherited
- 
  waitUntilFirstFrameRasterized() → Future< void> 
- 
  Waits until the next dart:ui.PlatformDispatcher.onReportTimings is
called.
  inherited
- 
  waitUntilNoTransientCallbacks({Duration? timeout}) → Future< void> 
- 
  Waits until there are no more transient callbacks in the queue.
  inherited
Operators
- 
  operator ==(Object other) → bool 
- 
  The equality operator.
  inherited