Automatically clicks on 'Ok' button when a match is found