setCursorPositionAndWait (UI Automation - Manipulation)
Compatible with:
- Purpose
- Generated from setCursorPosition(locator, position)
- This command moves the text cursor to the specified position in the given input element or text area. This method will fail if the specified element isn't an input element or text area.
- Syntax
- setCursorPositionAndWait(locator, position)
- Target
- locator - An element locator pointing to an input element or text area.
- Value
- position - The numerical position of the cursor in the field; position should be 0 to move the position to the beginning of the field. You can also set the cursor to -1 to move it to the end of the field.
- Return Value
- N/A