Comments (22)
Works for me (Win 11, Chrome 124.0.6367.92, Driver: 124.0.6367.91)
- Added argument: "disable-renderer-backgrounding"
- Make this: Driver.Close(); Driver.Quit(); Driver.Dispose();
from selenium.
@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.
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.
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.
@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.
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.
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.
@asolntsev, what does Selenide.closeWebDriver();
do?
from selenium.
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.
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.
What happens if you try with Chrome 123? Or Chrome for Testing?
from selenium.
Chrome 123 works good
from selenium.
I am facing same issue with v123 .
from selenium.
Just for the record, I cannot reproduce this problem in MacOS. Both Chrome 123 and 124 work well.
from selenium.
@nikitakovaliov92, could you please report this to the Chrome folks?
from selenium.
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.
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.
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.
**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.
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.
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 bothclose()
andquit()
(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.
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)
- [🐛 Bug]: ValueError: ZIP does not support timestamps before 1980 HOT 7
- [🐛 Bug]: Chrome not open in Windows Server 2022 (azure pipeline self hosted agent) via chromedriver.exe in .NET 6/8 app HOT 13
- [🐛 Bug]: How to connect runnning firefox to debug HOT 3
- [🐛 Bug]: Getting unwanted script error randomly while running selenium script with CRM dynamics 365 HOT 3
- [🐛 Bug]: Python, Pytest - download.default_directory is not working when --headless=new HOT 5
- [🐛 Bug]: Selenium Manager returns wrong browser-path if browser-version and browser-path sent HOT 11
- [🐛 Bug]: Selenium manager with --browser-path parameter downloads browser any way HOT 6
- [🐛 Bug]: selenium.common.exceptions.InvalidArgumentException: Message: binary is not a Firefox executable HOT 4
- [🐛 Bug]: [GRID] logging.properties is ignored when trying to remove stack trace errors from Logs HOT 1
- [🐛 Bug]: Using selenium-devtools-v123 with chrome 124.0.6367.201 is throwing no such method error on createSession method HOT 8
- [🐛 Bug]: a value is required for '--proxy ' but none was supplied with ProxyType.DIRECT HOT 10
- [🚀 Feature]: image-comparison HOT 4
- [🐛 Bug]: Selenium Manager process exited abnormally with 65 code HOT 4
- [🚀 Feature]: Ability to customize driver process start (.net) HOT 2
- [🐛 Bug]: Selenium remote driver is giving error with proxy authentication HOT 6
- [🚀 Feature]: Auto-generate the Python API from the code HOT 2
- [🐛 Bug]: PY - API Documentation: Default theme using newest Sphinx/Jinja has some visual issues HOT 1
- [🐛 Bug]: bug not fixed for "selenium seems to override _", issue 12659 HOT 4
- [🐛 Bug]: Selenium 4.22.0 breaks Appium HOT 4
- [🐛 Bug]: Missing dependency websocket-client in Python source package HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from selenium.