994946 - Unable to run katello-gui and headpin-gui automation due to TypeError and Reference Error

error was `ReferenceError: element is not defined`