In addition, you need the X11: : GuiTest module to send synthetic X Window events to applications.
Because a portion of this tutorial deals with graphical elements of the Emacs operation in the X Window System environment, you should also have an X server up and running.