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

Overview

SLTextField matches instances of UITextField.

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

SLTextField.h

text

The text displayed by the text field.

@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

SLTextField.h

Instance Methods

setText:withKeyboard:

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

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

Parameters

text

A string to type into the text field.

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

SLTextField.h