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

Overview

SLWebTextField matches text fields displayed in UIWebViews.

Such as form inputs.

Configuring web text fields' accessibility information

A web text field’s -label is the text of a DOM element specified by the “aria-labelled-by” attribute, if present. See SLWebTextField.html and the SLWebTextField test cases of SLTextFieldTest.

Tasks

  •   text

    The text displayed by the text field.

    property

Properties

text

The text displayed by the text field.

@property (nonatomic, copy) NSString *text

Discussion

-text returns the web text field’s value (i.e. the value of the form input’s “value” attribute).

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