Inherits from SLElement : SLUIAElement : NSObject
Declared in SLTextView.h

Overview

SLTextView matches instances of UITextView.

Tasks

Properties

defaultKeyboard

The default keyboard to be used by setText: and setText:withKeyboard:.

@property (nonatomic) id<SLKeyboard> defaultKeyboard

Discussion

Defaults to SLKeyboard.

Declared In

SLTextView.h

text

The text displayed by the text view.

@property (nonatomic, copy) NSString *text

Exceptions

SLUIAElementInvalidException

Raised by both -text and setText: if the element is not valid by the end of the default timeout.

SLUIAElementNotTappableException

Raised, only by setText:, if the element is not tappable when whatever amount of time remains of the default timeout after the element becomes valid elapses.

Declared In

SLTextView.h

Instance Methods

setText:withKeyboard:

Type the text in the text view with a specific keyboard.

- (void)setText:(NSString *)text withKeyboard:(id<SLKeyboard>)keyboard

Parameters

text

A string to type into the text view.

keyboard

An SLElement that implements the SLKeyboard protocol, to be used to type the given string.

Exceptions

SLUIAElementInvalidException

Raised if the element is not valid by the end of the default timeout.

SLUIAElementNotTappableException

Raised if the element is not tappable when whatever amount of time remains of the default timeout after the element becomes valid elapses.

Declared In

SLTextView.h