-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
Description
Description
In python, selenium==4.33.0 and 4.29.0 chrome = Version 137.0.7151.55 (Official Build) (64-bit) on linux ubuntu .
chromedriver --version
ChromeDriver 137.0.7151.55 (254bc711794d7ad269495f3d419a209935b78cad-refs/branch-heads/7151@{#1757})
A few months ago we started using enable_bidi in chrome options to work around an issue with chrome where in selenium tests we could not capture a "are you sure you want to leave this page, you have unsaved changes" type alert.
Adding enable_bidi had the annoying side effect of adding the bidi tab where all log messages appeared but that was okay, our tests worked.
Today they no longer work (we cannot see or capture the alert on leaving page, chrome never shows it) and enable_bidi does not appear to create the bidi tab either.
Seemed to start with chrome 137, chrome 136 works as before according to colleagues.
Reproducible Code
from selenium.webdriver import Chrome, ChromeOptions
from selenium.webdriver.chrome.service import Service as ChromeService
from selenium import __version__
import time
if __name__ == "__main__":
print(__version__) # <- 4.33.0 in my output
options = ChromeOptions()
options.enable_bidi = True
driver = Chrome(
options=options,
service=ChromeService(executable_path="/usr/local/bin/chromedriver"),
)
driver.get("https://www.example.com/")
time.sleep(5)
driver.close()
driver.quit()
ℹ️ Last known working version: Chrome / Chromedriver 136