Skip to content

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

@SeleniumNinja

Description

@SeleniumNinja

What happened?

selenium 4.26.0 and chrome 131

How can we reproduce the issue?

I have static webDriver in my java, selenium cucumber project and the following settings:
Selenium version 4.26.0, Chrome version 131

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");


 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"

Relevant log output

Computer has at least 50 percent of memory free so this is not a problem with RAM.

Operating System

windows 10

Selenium version

4.26.0

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

Chrome 131

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

chromedriver 131

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