Set Safari Field to Text fails

image

document.querySelector("#groupTextbox").value = 'nuts'

See this also:

Macro: Pause Until Web Page Element Exists [Example]