GREYDescription
@protocol GREYDescription <NSObject>
A protocol that defines the layout of an object that conforms to GREYMatcher.
-
Appends the provided text to the GREYDescription.
Declaration
Objective-C
- (id<GREYDescription>)appendText:(NSString *)text;
Swift
func appendText(_ text: String!) -> GREYDescription!
Parameters
text
The text to be appended to the GREYDescription.
Return Value
An instance of an object conforming to GREYDescription with the provided @c text appended to it.
-
Appends the description of the provided object to the GREYDescription.
Declaration
Objective-C
- (id<GREYDescription>)appendDescriptionOf:(id)object;
Swift
func append(of object: Any!) -> GREYDescription!
Parameters
object
The object whose description is to be appended to the GREYDescription.
Return Value
An instance of an object conforming to GREYDescription with the provided object’s description appended to it.