I recently was working on writing end-to-end test cases using protractor on a project. Everything was working fine until the…