@interface GREYBaseAction : NSObject <GREYAction>
A base class for all actions that incorporates commonalities between initialization parameters and constraint checking.
@remark init is not an available initializer. Use the other initializers.
The designated initializer for a base action with the provided @c constraints.
- (instancetype)initWithName:(NSString *)name constraints:(id<GREYMatcher>)constraints;
The name of the GREYAction being performed.
The constraints to be satisified by the element before the action is performed.
An instance of GREYBaseAction, initialized with the @c constraints for it to check for.
A method that checks that @c element satisfies @c constraints this action was initialized with. Subclasses should call this method if they want to check for constraints in their perform:error: implementation.
@throws GREYFrameworkException if constraints fail and @c errorOrNilPtr is not provided.
- (BOOL)satisfiesConstraintsForElement:(id)element error:(NSError **)errorOrNilPtr;
func satisfiesConstraints(forElement element: Any!, error errorOrNilPtr: Any!) -> Any!
A UI element being checked for the @c constraints. @param[out] errorOrNilPtr Error stored when an element did not satisfy the @c constraints. If an error is set but this pointer is @c nil, then an action failed exception is thrown.
@c YES if the constraints are satisfied on the element. @c NO otherwise.