Added a try catch block around moving the cursor to the top left location to account for exceptions thrown when the tests are tun in a headless process