AppDriverAdapter<TNativeAdapter , TFinderType , TWidgetBaseType > class
abstract
Properties
hashCode
→ int
The hash code for this object.
no setter inherited
nativeDriver
→ TNativeAdapter
no setter
runtimeType
→ Type
A representation of the runtime type of the object.
no setter inherited
Methods
dispose ()
→ void
enterText (TFinderType finder , String text , {Duration ? timeout = const Duration(seconds: 30) })
→ Future <void >
findBy (dynamic data , FindType findType )
→ TFinderType
Returns the correct finder type instance
data
can be String
, Key
or a Type
findType
denotes the type of finder returned
findByAncestor (TFinderType of , TFinderType matching , {bool matchRoot = false , bool firstMatchOnly = false })
→ TFinderType
findByDescendant (TFinderType of , TFinderType matching , {bool matchRoot = false , bool firstMatchOnly = false })
→ TFinderType
Finds widgets that are descendants of the of
parameter and that match the matching
parameter.
getText (TFinderType finder , {Duration ? timeout = const Duration(seconds: 30) })
→ Future <String ? >
isAbsent (TFinderType finder , {Duration ? timeout = const Duration(seconds: 1) })
→ Future <bool >
isPresent (TFinderType finder , {Duration ? timeout = const Duration(seconds: 1) })
→ Future <bool >
longPress (TFinderType finder , {Duration pressDuration = const Duration(milliseconds: 500) , Duration ? timeout = const Duration(seconds: 30) })
→ Future <void >
noSuchMethod (Invocation invocation )
→ dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pageBack ()
→ Future <void >
screenshot ()
→ Future <List <int > >
scroll (TFinderType finder , {double dx , double dy , Duration ? duration = const Duration(milliseconds: 200) , Duration ? timeout = const Duration(seconds: 30) })
→ Future <void >
Scrolls a descendant scrollable widget by the give parameters
scrollIntoView (TFinderType finder , {Duration ? timeout = const Duration(seconds: 30) })
→ Future <void >
scrollUntilVisible (TFinderType item , {TFinderType scrollable , double dx , double dy , Duration ? timeout = const Duration(seconds: 30) })
→ Future <void >
Repeatedly scrolls a Scrollable by delta until finder is visible.
Between each scroll, wait for duration time for settling.
If scrollable is null, this will find a Scrollable .
setNativeDriver (TNativeAdapter driver )
→ void
tap (TFinderType finder , {Duration ? timeout = const Duration(seconds: 30) })
→ Future <void >
toString ()
→ String
A string representation of this object.
inherited
waitForAppToSettle ({Duration duration = const Duration(milliseconds: 100) , Duration timeout = const Duration(seconds: 30) })
→ Future <int >
waitUntil (Future <bool > condition (), {Duration ? timeout = const Duration(seconds: 10) , Duration ? pollInterval = const Duration(milliseconds: 500) })
→ Future <void >
Will wait until the give condition returns true
polling every pollInterval
. If condition
has not returned true
within the given timeout
this will cause the returned future to complete with a TimeoutException .
widget <T extends TWidgetBaseType > (TFinderType finder , [ExpectedWidgetResultType expectResultType = ExpectedWidgetResultType.first ])
→ Future <T >
flutter_gherkin_integration 0.0.1-rc.2