I have encountered the same problem as you. The msedgedriver.exe I used before was version 132 and everything was normal, but the Edge browser automatically updated to version 133. I downloaded the new msedgedriver133 version and encountered the same error using the same code