Added timeouts to right-click events in executeContextMenuCommand() to
improve the simulation of a click