storeCursorPosition (UI Automation - Manipulation)
Compatible with:
- Purpose
- This command stores numerical position of the cursor in the field.
- Syntax
- storeCursorPosition(locator, variableName)
- Target
- locator - an element locator pointing to an input element or textarea.
- Value
- variableName - the name of a variable in which the result is to be stored.
- Return Value
- Retrieves the text cursor position in the given input element or textarea; sometime, this may not work perfectly on all browsers.
- This method will fail if the specified element isn’t an input element or textarea, or there is no cursor in the element.