ScreenshotStep class



ScreenshotStep({bool goldenCompatible: true, String imageId})


driver → OverrideWidgetTester
Returns the test driver that can be used to interact with widgets.
read-only, inherited
find → CommonFinders
Returns the finder that can be used to locate widgets.
read-only, inherited
goldenCompatible bool
Set to false if this image is known to be capturing dynamic information that is incompatible with golden images.
hashCode int
The hash code for this object. [...]
read-only, inherited
imageId String
The id of the screenshot. This will be saved in the report along with the screenshot itself.
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited


execute({TestReport report, TestController tester}) Future<void>
Requests a screenshot from the framework and attaches it to the report.
log(String message, {TestController tester}) → void
Logs a message and posts it as a status update to the TestRunner.
@protected, inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
postStepSleep(Duration duration) Future<void>
Overidden to ignore the delay
preStepSleep(Duration duration) Future<void>
Gives the test step an opportunity to sleep before the step has been executed. Steps that do not interact with the application may choose to override this and reduce or elimate the delay.
sleep(Duration duration, {Stream<void> cancelStream, bool error: false, String message, TestController tester}) Future<void>
Sleeps for the defined Duration. This accept an optional cancelStream which can be used to cancel the sleep. The error flag informs the sleeper about whether the duration is a standard duration or an error based timeout. [...]
@protected, inherited
toJson() Map<String, dynamic>
Converts this to a JSON compatible map. For a description of the format, see fromDynamic.
toString() String
Returns the string encoded JSON representation for this class. This will remove all null values and empty collections from the returned string.
waitFor(dynamic testableId, {TestController tester, Duration timeout}) Future<Finder>
Waits for a widget with a key that has testableId as the value.
@protected, inherited


operator ==(Object other) bool
The equality operator. [...]

Static Methods

fromDynamic(dynamic map) ScreenshotStep
Creates an instance from a JSON-like map structure. This expects the following format: [...]