Skip to content

[πŸ› Bug]: Java Selenium 4.25.0- after 3 hours of tests I get error in Chrome "Not enought memory to open this page"Β #14577

@SeleniumNinja

Description

@SeleniumNinja

What happened?

I have static webDriver in my java, selenium cucumber project and the following settings:

Selenium version 4.25.0, Chrome version 129****

How can we reproduce the issue?

ChromeOptions options = new ChromeOptions();
options.addArgument("--headless-new");
options.addArgument("--no-sandbox");
options.addArgument("--disable-gpu");
options.addArgument("--disable-backgrounding-occluded-windows");
options.addArgument("--disable-dev-shm-usage");
options.addArgument("--disable-background-timer-throttling");
options.addArgument("--disable-extensions");
options.addArgument("--disable-site-isolation-trials");

Relevant log output

Chrome browser opens only once. I my project method webDriver.quit() in invoked after all scenarios are done. After each scenario next scenario is started from home page. Browser does not close after each scenario. It stays open until all scenarios are carried out. Finally @afterclass webDriver.quit() should be invoked. So it means I don't do webDriver.quit() after every scenario.
But after 3 hours of tests I get error in Chrome browser

"Not enough memory to open this page. Try closing other tabs or programs to free up memory. Error code: Out of memory"

Maybe Chrome browser does not have memory to store this amount of cache ?

Operating System

windows 10

Selenium version

4.25.0

What are the browser(s) and version(s) where you see this issue?

Chrome 129

What are the browser driver(s) and version(s) where you see this issue?

chromedriver 129

Are you using Selenium Grid?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    G-chromedriverRequires fixes in ChromeDriver

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions