Text actions
selectText
Method allowing to select the text of an element.
Parameter | Type | Description |
---|---|---|
selector | selectorType | Selector of the element to targeted by the action. |
startPos | number | Number delimiting the starting range of the action. |
endPos | number | Number delimiting the ending range of the action. |
Basic Usage
await I.selectText(
"mySelector",
15, //optional
300 //optional
)
selectContent
Method allowing to select an element.
Parameter | Type | Description |
---|---|---|
selector | selectorType | Selector of the element to select. |
Basic Usage
await I.selectContent("mySelector");
selectEditableContent
Method allowing to select the content inside a content editable element.
Parameter | Type | Description |
---|---|---|
startSelector | selectorType | Selector delimiting the starting range of he select action. |
endSelector | selectorType | Selector 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
Parameter | Type | Description |
---|---|---|
selector | any | Selector of the element to perform the action. |
startLine | number | Number matching the line number delimiting the starting range of the action. |
startPosition | number | Number matching the position in a line delimiting the starting range of the action. |
endLine | number | Number matching the line number delimiting the ending range of the action. |
endPosition | number | Number 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
}
);