performTextReplacement
suspend fun <T : Component> SwingNodeInteraction<T>.performTextReplacement(text: @Nls String): SwingNodeInteraction<T>
Replaces the matched JTextComponent's entire content with text, then settles the composition.
The existing text is selected and text typed over it, which is the gesture a user replaces content with; see performTextInput for what typing passes through. Replacing with an empty text is the selection deleted by the first keystroke of nothing, so it leaves the content selected rather than cleared - type a backspace with performKeyPress to clear it.
Return
this interaction, for chaining a further gesture or assertion.
Parameters
text
typed over the selected content, so its first character replaces the whole of it.