You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the waitUntilTypeExistsStep (here) the expectation is that a String parameter is converted into a Type. However, without reflection, this will not be possible and the code fails with an exception:
Exception: type 'String' is not a subtype of type 'Type'
The problem is caused by these lines where we tell the findBy method that the ofType argument is a FindType.type.
This resolves to calling this method and the code will throw an exception.
Finder byType(Type type, {bool skipOffstage = true})
As possible solution, albeit a little clunky, could be to have a predefined Set of types that can be iterated over to match on the String via it's name. But then you have a fixed list of Types unless you could also pass new types in via the World object.
The text was updated successfully, but these errors were encountered:
In the
waitUntilTypeExistsStep
(here) the expectation is that aString
parameter is converted into aType
. However, without reflection, this will not be possible and the code fails with an exception:The problem is caused by these lines where we tell the
findBy
method that theofType
argument is aFindType.type
.This resolves to calling this method and the code will throw an exception.
As possible solution, albeit a little clunky, could be to have a predefined Set of types that can be iterated over to match on the
String
via it's name. But then you have a fixed list ofTypes
unless you could also pass new types in via theWorld
object.The text was updated successfully, but these errors were encountered: