Skip to content

verifyNotCursorPosition (UI Automation - Interrogation)

Compatible with:
  • Purpose
  • This command retrieves the text cursor position in the given input element or text area; beware, this may not work perfectly on all browsers. Specifically, if the cursor/selection has been cleared by JavaScript, this command will tend to return the position of the last location of the cursor, even though the cursor is now gone from the page. This is filed as SEL-243. This method will fail if the specified element isn't an input element or text area, or there is no cursor in the element.
  • Syntax
  • verifyNotCursorPosition(locator, pattern)
  • Target
  • locator - An element locator pointing to an element OR an element itself
  • Value
  • Pattern - Position to be verified.
  • Return Value
  • The numerical position of the cursor in the field
 
 
 
 

Feedback and Knowledge Base