ISelenium SetCursorPosition Method WebDriver
Moves the text cursor to the specified position in the given input element or textarea. This method will fail if the specified element isn't an input element or textarea.

Namespace: Selenium
Assembly: ThoughtWorks.Selenium.Core (in ThoughtWorks.Selenium.Core.dll) Version: 2.35.0.0 (2.35.0.0)
Syntax

void SetCursorPosition(
	string locator,
	string position
)

Parameters

locator
Type: OnlineSystem String
an element locator pointing to an input element or textarea
position
Type: OnlineSystem String
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.
See Also