GREYElementInteraction
@interface GREYElementInteraction : NSObject <GREYInteraction>
Interface for creating an interaction with a UI element. If no datasource is set, a default datasource is used. The default datasource provides access to the entire UI element hierarchy of all the windows in the application.
-
@remark init is not an available initializer. Use the other initializers.
Declaration
Objective-C
- (instancetype)init;
Swift
init!()
-
Initializes the interaction with a single UI element matching @c elementMatcher.
Declaration
Objective-C
- (instancetype)initWithElementMatcher:(id<GREYMatcher>)elementMatcher;
Swift
init!(elementMatcher: Any!)
Parameters
elementMatcher
Matcher for selecting UI element to interact with.
Return Value
An instance of GREYElementInteraction, initialized with a specified matcher.