Giter Site home page Giter Site logo

Comments (22)

ashustovsky avatar ashustovsky commented on September 13, 2024 3

Works for me (Win 11, Chrome 124.0.6367.92, Driver: 124.0.6367.91)

  1. Added argument: "disable-renderer-backgrounding"
  2. Make this: Driver.Close(); Driver.Quit(); Driver.Dispose();

from selenium.

nikitakovaliov92 avatar nikitakovaliov92 commented on September 13, 2024 1

@diemol from javadoc

Close the browser if it's open.
NB! Method quits this driver, closing every associated window.
See Also:
WebDriver. quit()

from selenium.

nikitakovaliov92 avatar nikitakovaliov92 commented on September 13, 2024 1

created issue for chrome team: https://issues.chromium.org/issues/336164423

@asolntsev i'm not sure about this comment because another users have the same issue as me on the Chrome 124+......

Just for the record, I cannot reproduce this problem in MacOS. Both Chrome 123 and 124 work well.

from selenium.

RileyXX avatar RileyXX commented on September 13, 2024 1

You need to call driver.close() before driver.quit() otherwise you get lingering chrome processes with high resource usage. This is an issue with recent chrome versions (124+).

from selenium.

github-actions avatar github-actions commented on September 13, 2024

@nikitakovaliov92, thank you for creating this issue. We will troubleshoot it as soon as we can.


Info for maintainers

Triage this issue by using labels.

If information is missing, add a helpful comment and then I-issue-template label.

If the issue is a question, add the I-question label.

If the issue is valid but there is no time to troubleshoot it, consider adding the help wanted label.

If the issue requires changes or fixes from an external project (e.g., ChromeDriver, GeckoDriver, MSEdgeDriver, W3C), add the applicable G-* label, and it will provide the correct link and auto-close the issue.

After troubleshooting the issue, please add the R-awaiting answer label.

Thank you!

from selenium.

github-actions avatar github-actions commented on September 13, 2024

Hi, @nikitakovaliov92.
Please follow the issue template, we need more information to reproduce the issue.

Either a complete code snippet and URL/HTML (if more than one file is needed, provide a GitHub repo and instructions to run the code), the specific versions used, or a more detailed description to help us understand the issue.

Note: If you cannot share your code and URL/HTML, any complete code snippet and URL/HTML that reproduces the issue is good enough.

Reply to this issue when all information is provided, thank you.

from selenium.

nikitakovaliov92 avatar nikitakovaliov92 commented on September 13, 2024

selenium.zip
Run tests from attached project several times and look at the task manager Processes tab. There are a lot of Google Chrome items

from selenium.

diemol avatar diemol commented on September 13, 2024

@asolntsev, what does Selenide.closeWebDriver(); do?

from selenium.

diemol avatar diemol commented on September 13, 2024

Does this happen in any machine?
I am trying to understand better because if this was an issue, I can imagine many more people reporting it.

from selenium.

nikitakovaliov92 avatar nikitakovaliov92 commented on September 13, 2024

Does this happen in any machine? I am trying to understand better because if this was an issue, I can imagine many more people reporting it.

in my case it reproduces on Windows

I can imagine many more people reporting it.

chrome 124 was released 4/16 so maybe not a lot of users have updated it yet

from selenium.

diemol avatar diemol commented on September 13, 2024

What happens if you try with Chrome 123? Or Chrome for Testing?

from selenium.

nikitakovaliov92 avatar nikitakovaliov92 commented on September 13, 2024

Chrome 123 works good

from selenium.

vibes121 avatar vibes121 commented on September 13, 2024

I am facing same issue with v123 .

from selenium.

asolntsev avatar asolntsev commented on September 13, 2024

Just for the record, I cannot reproduce this problem in MacOS. Both Chrome 123 and 124 work well.

from selenium.

diemol avatar diemol commented on September 13, 2024

@nikitakovaliov92, could you please report this to the Chrome folks?

from selenium.

github-actions avatar github-actions commented on September 13, 2024

Hi, @nikitakovaliov92.
This issue has been determined to require fixes in ChromeDriver.

You can see if the feature is passing in the Web Platform Tests.

If it is something new, please create an issue with the ChromeDriver team.
Feel free to comment the issues that you raise back in this issue. Thank you.

from selenium.

titusfortner avatar titusfortner commented on September 13, 2024

According to the Chrome bug report, seems like only an issue when using '--no-sandbox?
Hopefully they fix this because you really shouldn't need to call both close() and quit() (and actually doing so should result in an error)

from selenium.

Chihitempclaims avatar Chihitempclaims commented on September 13, 2024

Can you tell me which window version you are using?? i am using Windows 11 Pro edition and working fine in both single instances and multiple instances.
As i am using these chrome options:
op.add_argument('--disable-dev-shm-usage')
op.add_argument("--disable-extensions")
op.add_argument('--disable-gpu')
op.add_argument('--no-sandbox')
# op.add_argument('--headless')
op.add_argument('--start-maximized')
op.add_argument('--window-size=1920x1080')

from selenium.

Chihitempclaims avatar Chihitempclaims commented on September 13, 2024

**Can you tell me which window version you are using?? i am using Windows 11 Pro edition and working fine in both single instances and multiple instances(multiprocessing). I didnt encounter any chrome background processes.
As i am using these chrome options:
op.add_argument('--disable-dev-shm-usage')
op.add_argument("--disable-extensions")
op.add_argument('--disable-gpu')
op.add_argument('--no-sandbox')
op.add_argument('--start-maximized')
op.add_argument('--window-size=1920x1080')

from selenium.

titusfortner avatar titusfortner commented on September 13, 2024

You shouldn't need most of those arguments unless you are also running headless, and even then you probably don't want --no-sandbox. Please read - https://github.com/GoogleChrome/chrome-launcher/blob/main/docs/chrome-flags-for-tools.md

from selenium.

Chihitempclaims avatar Chihitempclaims commented on September 13, 2024

According to the Chrome bug report, seems like only an issue when using '--no-sandbox? Hopefully they fix this because you really shouldn't need to call both close() and quit() (and actually doing so should result in an error)

in 124+ its working fine but as I remember for the previous versions it results in an error. I mostly encounter multiple chrome's background process in mostly VM's with (Windows 10 Enterprise). In linux systems it is working fine.

from selenium.

ENY66 avatar ENY66 commented on September 13, 2024

I've been having this problem on Windows 10 with v125. The solution described by others here to call driver.close() before driver.quit() improved the situation, but did not solve it completely. Instead, removing chrome_options.add_argument("--no-sandbox") seems to have solved it.

from selenium.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.