Skip to content
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

Enabling BiDi mode - fixing test failures #1152

Merged
merged 1 commit into from
Aug 5, 2024
Merged

Conversation

berhalak
Copy link
Contributor

@berhalak berhalak commented Aug 5, 2024

Context

Latest chrome version 127, has started ignoring alerts and popups when controlled via a webdriver.
SeleniumHQ/selenium#14290

Proposed solution

According to the article above, popups and alerts are still shown in BiDi sessions. While we don't have latest webdriver library (where the new enableBiDi method is exposed), it can be toggled by using the set method in capabilities interface, as it is done here https://github.com/shs96c/selenium/blob/ff82c4af6a493321d9eaec6ba8fa8589e4aa824d/javascript/node/selenium-webdriver/firefox.js#L415

Has this been tested?

  • 👍 yes, I added tests to the test suite
  • 💭 no, because this PR is a draft and still needs work
  • [x ] 🙅 no, because this is not relevant here
  • 🙋 no, because I need help

@berhalak berhalak changed the title WIP Enabling BiDi mode Enabling BiDi mode Aug 5, 2024
@berhalak berhalak changed the title Enabling BiDi mode Enabling BiDi mode - fixing test failures Aug 5, 2024
@fflorent
Copy link
Collaborator

fflorent commented Aug 5, 2024

That seems good to me, and the tests passes!

FWIW, I have cherry-picked your commit to see if that also fixes the CI for my PR #1149

Copy link
Contributor

@jordigh jordigh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This works, although I hope we can upgrade Selenium so we can properly call chromeOpts.enableBidi() instead. Maybe some day.

@berhalak berhalak merged commit 9518915 into main Aug 5, 2024
11 checks passed
@berhalak berhalak deleted the enable-bidi-mode branch August 5, 2024 21:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants