Skip to content

enable_bidi gone? #3796

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
isparks-tg opened this issue Jun 6, 2025 · 2 comments
Closed

enable_bidi gone? #3796

isparks-tg opened this issue Jun 6, 2025 · 2 comments
Labels

Comments

@isparks-tg
Copy link

In python, selenium==4.29.0 chrome = Version 137.0.7151.55 (Official Build) (64-bit) on linux.

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.

from selenium.webdriver import Chrome, ChromeOptions
from selenium.webdriver.chrome.service import Service as ChromeService
import time
if __name__ == "__main__":

    options = ChromeOptions()

    options.enable_bidi = True

    driver = Chrome(
        options=options,
        service=ChromeService(executable_path="/usr/local/bin/chromedriver"),
    )

    driver.get("https://www.example.com/")
    # No bidi tab which is what I am expecting here
    time.sleep(5)

    driver.close()
    driver.quit()

Seemed to start with chrome 137, chrome 136 works as before according to colleagues.

@mdmintz mdmintz added the invalid label Jun 6, 2025
@mdmintz
Copy link
Member

mdmintz commented Jun 6, 2025

I don't see any seleniumbase code in your example. This is the https://github.com/seleniumbase/SeleniumBase repo, not https://github.com/SeleniumHQ/selenium, which is a completely separate project with different APIs. If you have an issue with regular selenium, you should bring it up with them.

@mdmintz mdmintz closed this as completed Jun 6, 2025
@isparks-tg
Copy link
Author

Apologies and thanks for the redirect.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants