Command line automation for X11.
xdotool search --onlyvisibile --name {{firefox}}
xdotool click {{3}}