[🐛 Bug]: driver.execute_script() does not work with chromedriver/msedgedriver v96 - return dict and not WebDriver object · Issue #10019 · SeleniumHQ/selenium

What happened? After updating chrome and/or msedge to v96, driver.execute_script() no longer works it returns a dict(hash) instead of webDriver element: I need to execute a shadowRoot pseudo-elemen...