Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Disable search engine choice window for ChromeDriver in system specs#13282

Conversation

ahukkanen
Copy link
Contributor

🎩 What? Why?

With the latest stable Chrome and ChromeDriver (127.0.6533.99) started to see the following errors in the console when trying to run any system specs:

     Got 0 failures and 2 other errors:     1.1) Failure/Error: Unable to infer file and line number from backtrace                    Selenium::WebDriver::Error::UnknownError:            unknown error: failed to close window in 20 seconds              (Session info: chrome=127.0.6533.99)     1.2) Failure/Error: Unable to infer file and line number from backtrace                    Selenium::WebDriver::Error::UnknownError:            unknown error: failed to close window in 20 seconds              (Session info: chrome=127.0.6533.99)

Tried running the same spec in visual mode by disabling the headless mode of ChromeDriver, i.e. commenting out this line:

And I saw the search engine selection screen on top of the window which prevents the screen from being closed (see the attached screenshot).

Testing

  • Update Chrome and ChromeDriver to latest stable (127.0.6533.99 or newer)
  • Try to run any system specs
  • See the errors presented in the description without the fix
  • Re-run the same spec with the fix and see that the error is gone

📷 Screenshots

Search engine selector on top of the Chrome window

@ahukkanenahukkanen added the type: fixPRs that implement a fix for a bug labelAug 7, 2024
@ahukkanen
Copy link
ContributorAuthor

Note that I added thefix label because the capybara configuration is shipped along with thedecidim-dev module which most external modules use to run their tests.

@ahukkanenahukkanen changed the titleDisable search engine choise window for ChromeDriver in system specsDisable search engine choice window for ChromeDriver in system specsAug 7, 2024
Copy link
Contributor

@alecslupualecslupu left a comment

Choose a reason for hiding this comment

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

@ahukkanen , using

$google-chrome --version    Google Chrome 127.0.6533.99$chromedriver --version  ChromeDriver 127.0.6533.99 (f31af5097d90ef5ae5bd7b8700199bc6189ba34d-refs/branch-heads/6533@{#1910})

I could not replicate the issue while testingdecidim-core/spec/system/account_spec.rb nordecidim-core/spec/system/homepage_spec.rb.

Since the handler is documentedhere--disable-search-engine-choice-screen: Disable the 2023+ search engine choice screen, i am approving this.

@alecslupualecslupu added this to the0.30.0 milestoneAug 9, 2024
@alecslupualecslupu merged commit100795c intodecidim:developAug 9, 2024
98 of 99 checks passed
@ahukkanenahukkanen deleted the test/chromedriver-disable-search-engine-choise branchAugust 9, 2024 13:40
@ahukkanen
Copy link
ContributorAuthor

@alecslupu Accoding to the internet, I am not the only one experiencing this issue after updating to v127:

https://stackoverflow.com/questions/78809256/disable-search-engine-choice-screen-with-chrome-and-selenium
https://stackoverflow.com/questions/78835281/start-chrome-without-asking-about-being-my-default-search-engine
https://vedantkekan.medium.com/how-to-get-rid-of-choose-your-search-engine-dialog-in-chrome-v-127-on-selenium-test-run-ec46643a3228
SeleniumHQ/selenium#14343
https://updates.robocorp.com/release/51XaM-rpa-framework-2862
https://www.linkedin.com/posts/luisnunezgomez_selenium-chrome-qa-activity-7222166713239281665-_Hro
https://makandracards.com/makandra/621797-chrome-disable-choose-search-engine-popup-tests
https://github.com/sitespeedio/browsertime/blob/main/CHANGELOG.md (see notes for 22.8.0)

There may be some special configuration on your machine that prevents the window from showing but I believe with the default installation, it will show up.

entantoencuanto added a commit that referenced this pull requestAug 26, 2024
* develop: (43 commits)  Enable admins answer to closed comments  (#13027)  Improve generic error messages (#13286)  Add opt-in to newsletter when using OmniAuth registration method (#13077)  Fix exceptions with `decidim-templates` when not added explicitly  (#13263)  Fix deleting a component which has reminders associated with it (#13281)  Do not disclose Decidim version through the API (#13280)  Fix character counter disposition and spacing with WYSIWYG (#13264)  Make confirm page unload compatible with the current unload event standards and newer Chromium (#13283)  Disable search engine choise window for ChromeDriver (#13282)  Remove unnecessary expected spelling variant (#13287)  Generalize the term "Geocoding enabled" (#13285)  Add coauthor from comments in proposals (#13003)  Provide bulk action answers to proposals through answers templates (#13057)  Create taxonomies section in the general settings (#13112)  Parametrize Chrome Driver (#13277)  Fix proposals' preview spacing (#13265)  Remove pagination configuration initializer (#13210)  Add spring as dependency (#13235)  New Crowdin updates (#13203)  Add exception handling when the versioned model does not exists (#13236)  ...
ahukkanen added a commit to mainio/decidim-module-tunnistamo that referenced this pull requestSep 5, 2024
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@alecslupualecslupualecslupu approved these changes

@github-actionsgithub-actions[bot]github-actions[bot] approved these changes

Assignees
No one assigned
Labels
module: devtype: fixPRs that implement a fix for a bug
Projects
Archived in project
Milestone
0.30.0
Development

Successfully merging this pull request may close these issues.

2 participants
@ahukkanen@alecslupu

[8]ページ先頭

©2009-2025 Movatter.jp