Hi there,
I’m currently using the following code to input text into a search box on a website:
inputByID("TextField", "Some Text")
to inputByID(theId, theValue)
tell application "Safari"
do JavaScript " document.getElementById('" & theId & "').value ='" & theValue & "';" in document 1
end tell
end inputByID
The problem is, the text box has no submit button. You are supposed to hit the return key to submit the search string.
Is it possible to do this without having to simulate a Return key press through system events?
Thanks!
Adam