- 
          
- 
                Notifications
    You must be signed in to change notification settings 
- Fork 1.4k
Closed
Labels
bugUh oh... Something needs to be fixedUh oh... Something needs to be fixedexternalOutside SeleniumBase's scope. / Ask somewhere else.Outside SeleniumBase's scope. / Ask somewhere else.not enough infonot enough info / more info needednot enough info / more info needed
Description
This only seems to be a problem when running in headless mode. Below is a minimal example to reproduce the issue.
Windows 10 22H2
Google Chrome 127.0.6533.89
seleniumbase==4.29.6
from seleniumbase import Driver
driver = Driver(headless=True)
try:
    driver.open("seleniumbase.io/simple/login")
    driver.sleep(5)
finally:
    driver.quit()
Run this in Windows Powershell. Open a task manager and watch the child processes of the powershell window. Roughly once every 10 executions, the chrome.exe process will be orphaned when python finishes. When this happens, chrome.exe will also skyrocket in CPU utilization.
I've tried using headless2=True and chromium_args="--headless=new", but the results are the same.
plain selenium does not seem to have this bug:
from selenium.webdriver import Chrome
from selenium.webdriver.chrome.options import Options
options = Options()
options.add_argument("--headless=new")
driver = Chrome(options=options)
try:
    driver.get("https://seleniumbase.io/simple/login")
    sleep(5)
finally:
    driver.quit()
Metadata
Metadata
Assignees
Labels
bugUh oh... Something needs to be fixedUh oh... Something needs to be fixedexternalOutside SeleniumBase's scope. / Ask somewhere else.Outside SeleniumBase's scope. / Ask somewhere else.not enough infonot enough info / more info needednot enough info / more info needed