Description
We intermittently hit scenarios where browser becomes unresponsive in waitForAngularToFinish() method. This happens in the code where we try to execute javascript in the browser to find if angular has finished execution. The solution is to have an upper limit on the amount of time spent in this javascript execution.