Whenever I try to switch to a different Chrome browser window using driver.switchTo().window(handle) I get this error: enter image description here
This particular functionality was working fine till Chrome 97 but recently I have started facing this issue. Has anyone faced the similar kind of issue or does anyone know any solution?