fix selenium for release 77 and onwards