Skip to main content
Version: 9.0.0

Text actions

selectText

Method allowing to select the text of an element.

ParameterTypeDescription
selectorselectorTypeSelector of the element to targeted by the action.
startPosnumberNumber delimiting the starting range of the action.
endPosnumberNumber delimiting the ending range of the action.

Basic Usage

 await I.selectText(
"mySelector",
15, //optional
300 //optional
)

selectContent

Method allowing to select an element.

ParameterTypeDescription
selectorselectorTypeSelector of the element to select.

Basic Usage

await I.selectContent("mySelector");

selectEditableContent

Method allowing to select the content inside a content editable element.

ParameterTypeDescription
startSelectorselectorTypeSelector delimiting the starting range of he select action.
endSelectorselectorTypeSelector delimiting the ending range of he select action.

Basic Usage

        await I.selectEditableContent(
"myStartSelector",
"myEndSelector",
);

selectTextAreaContent

Method allowing to select the content of a text area element.

Parameter object

ParameterTypeDescription
selectoranySelector of the element to perform the action.
startLinenumberNumber matching the line number delimiting the starting range of the action.
startPositionnumberNumber matching the position in a line delimiting the starting range of the action.
endLinenumberNumber matching the line number delimiting the ending range of the action.
endPositionnumberNumber matching the position in a line delimiting the ending range of the action.

Basic Usage

 await I.selectTextAreaContent(
{
selector:"anySelector",
startLine:1,
startPosition:10,
endLine:5,
endPosition:55
}
);