I can't find a command to print on a browser a string in a shell script. For example here on stackoverflow. I'd like to create a script that writes a string in the searchbar and search
xdotool mousemove x y # position of the searchbar
xdotool mouseclick 1 # leftclick
[[command that writes a string on the searchbar]]
xdotool key KP_Enter # press enter
It should be easy but I can't find it
Would answer in this question be useful? Just replace url with apropriate search string https://stackoverflow.com/search?q=foobar