// Select the 3rd word (AXSelectedTextMarkerRange). text_range={anchor: {:3, 0, down}, focus: {:3, 44, down}} marker_0={:3, 0, down} marker_1={:3, 3, down} marker_2={:3, 9, down} marker_3={:3, 15, down} marker_4={:3, 10, down} target_selected_marker_range={anchor: {:3, 10, down}, focus: {:3, 15, down}} textarea.AXSelectedTextMarkerRange={anchor: {:3, 10, down}, focus: {:3, 15, down}} AXSelectedTextChanged on AXTextArea AXValue='The quick brown fox jumps over the lazy dog' AXTextSelectionDirection=AXTextSelectionDirectionUnknown AXTextSelectionGranularity=AXTextSelectionGranularityUnknown AXTextStateChangeType=AXTextStateChangeTypeSelectionMove textarea.AXSelectedText='brown' textarea.accessibilitySelectedText='brown' // Select 2nd word on the 2nd line (AXSelectedTextMarkerRange). text_range={anchor: {:3, 0, down}, focus: {:3, 44, down}} marker_0={:3, 0, down} marker_1={:3, 15, down} marker_2={:3, 19, down} marker_3={:3, 25, down} marker_4={:3, 20, down} target_selected_marker_range={anchor: {:3, 20, down}, focus: {:3, 25, down}} textarea.AXSelectedTextMarkerRange={anchor: {:3, 20, down}, focus: {:3, 25, down}} AXSelectedTextChanged on AXTextArea AXValue='The quick brown fox jumps over the lazy dog' AXTextSelectionDirection=AXTextSelectionDirectionUnknown AXTextSelectionGranularity=AXTextSelectionGranularityUnknown AXTextStateChangeType=AXTextStateChangeTypeUnknown textarea.AXSelectedText='jumps' textarea.accessibilitySelectedText='jumps' // Select text on the 1st line (AXSelectedTextRange). textarea.AXSelectedTextRange={loc: 10, len: 5} AXSelectedTextChanged on AXTextArea AXValue='The quick brown fox jumps over the lazy dog' AXTextSelectionDirection=AXTextSelectionDirectionUnknown AXTextSelectionGranularity=AXTextSelectionGranularityUnknown AXTextStateChangeType=AXTextStateChangeTypeUnknown textarea.AXSelectedText='brown' textarea.accessibilitySelectedText='brown' // select text on the 2nd line (AXSelectedTextRange). textarea.AXSelectedTextRange={loc: 20, len: 5} AXSelectedTextChanged on AXTextArea AXValue='The quick brown fox jumps over the lazy dog' AXTextSelectionDirection=AXTextSelectionDirectionUnknown AXTextSelectionGranularity=AXTextSelectionGranularityUnknown AXTextStateChangeType=AXTextStateChangeTypeUnknown textarea.AXSelectedText='jumps' textarea.accessibilitySelectedText='jumps' // Put cursor after the 2nd word. textarea.AXSelectedTextRange={loc: 10, len: 0} AXSelectedTextChanged on AXTextArea AXValue='The quick brown fox jumps over the lazy dog' AXTextSelectionDirection=AXTextSelectionDirectionUnknown AXTextSelectionGranularity=AXTextSelectionGranularityUnknown AXTextStateChangeType=AXTextStateChangeTypeUnknown // Force line break. press Enter // Select text on the 2nd line (fox). textarea.AXSelectedTextRange={loc: 17, len: 3} AXSelectedTextChanged on AXTextArea AXValue='The quick brown fox jumps over the lazy dog' AXTextSelectionDirection=AXTextSelectionDirectionUnknown AXTextSelectionGranularity=AXTextSelectionGranularityUnknown AXTextStateChangeType=AXTextStateChangeTypeUnknown textarea.AXSelectedText='fox' textarea.accessibilitySelectedText='fox'