EnsureTag class

Combines @ByTagName and @CheckTag. For use only on class declarations.

This is only really useful if you plan to create the page object directly, e.g. from a test. Otherwise you'll be chaining Finders, which is at best a performance hit and at worse a cause of tricky bugs.

Implemented types
Annotations
  • @Deprecated("Use '@CheckTag' instead. '@EnsureTag' is only kept to make " 'migration easier. Will be removed in a future version.')

Constructors

EnsureTag(String _expectedTagName)
const

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

check(PageLoaderElement element) bool
override
findElements(PageLoaderElement context) List<PageLoaderElement>
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited