Add clickAndWaitForNewWindow that takes a timeout argument