API referenceInterfacesSelectionEventOn this pageSelectionEvent Reported by onSelectionChange as the user adjusts a selection. Properties locator? optional locator?: Locator; Where the selection is; undefined once it's cleared. selectedText? optional selectedText?: string;