Skip to content

[πŸš€ Feature]: Leverage streaming output in the bindingsΒ #13989

Open

Description

@titusfortner

Status

Feature and motivation

Now that #13260 has been implemented with #13414 we need each of the bindings to

  1. switch from --output json to --output mixed
  2. leverage [πŸš€ Feature]: Selenium Manager Log LevelΒ #13437 and use --log-level rather than --debug
  3. switch from printing logged output at the end of the selenium manager execution to using the streamed output

Usage example

./selenium-manager --browser chrome --log-level debug --output mixed

Activity

  1. added
    C-py
    C-rb
    C-dotnet
    C-java
    C-nodejs
    I-enhancement
    on May 20, 2024
  2. added this to the Selenium 5.0 milestone on May 20, 2024
  3. aguspe commented on Jun 24, 2024

    @aguspe
    Contributor

    @titusfortner is there help wanted for the ruby bindings for this feature?

  4. titusfortner commented on Jun 24, 2024

    @titusfortner
    MemberAuthor

    Sure!

  5. github-actions commented on Dec 31, 2024

    @github-actions
    Contributor

    This issue is stale because it has been open 280 days with no activity. Remove stale label or comment or this will be closed in 14 days.

  6. added
    J-stale
    on Dec 31, 2024
  7. github-actions commented on Jan 14, 2025

    @github-actions
    Contributor

    This issue was closed because it has been stalled for 14 days with no activity.

  8. github-actions commented on Feb 13, 2025

    @github-actions
    Contributor

    This issue has been automatically locked since there has not been any recent activity since it was closed. Please open a new issue for related bugs.

  9. locked and limited conversation to collaborators on Feb 13, 2025
  10. removed
    J-stale
    on Feb 14, 2025
  11. nvborisenko commented on Dec 27, 2025

    @nvborisenko
    Member

    Executed:

    selenium-manager.exe --browser chrome --log-level trace --output mixed
    

    Here trace is switch for logging. TBD: what are all possible values for the switch trace/debug is enough. Then we will put this value depending on current log level set by user.

    STDOUT:

    {
      "driver_path": "C:\\Users\\Nick\\.cache\\selenium\\chromedriver\\win64\\143.0.7499.169\\chromedriver.exe",
      "browser_path": "C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe",
      "error": ""
    }
    

    STDERR:

    [2025-12-27T12:05:28.806Z TRACE] Reading metadata from C:\Users\Nick\.cache\selenium\se-metadata.json
    [2025-12-27T12:05:28.807Z TRACE] Checking chromedriver in PATH
    [2025-12-27T12:05:28.831Z DEBUG] chromedriver not found in PATH
    [2025-12-27T12:05:28.831Z DEBUG] chrome detected at C:\Program Files\Google\Chrome\Application\chrome.exe
    [2025-12-27T12:05:28.831Z TRACE] Path C:\Program Files\Google\Chrome\Application\chrome.exe has been escaped to C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe
    [2025-12-27T12:05:28.831Z DEBUG] Detected browser: chrome 143.0.7499.170
    [2025-12-27T12:05:28.832Z TRACE] Reading metadata from C:\Users\Nick\.cache\selenium\se-metadata.json
    [2025-12-27T12:05:28.833Z TRACE] Driver TTL is valid. Getting chromedriver version from metadata
    [2025-12-27T12:05:28.833Z DEBUG] Required driver: chromedriver 143.0.7499.169
    [2025-12-27T12:05:28.833Z DEBUG] chromedriver 143.0.7499.169 already in the cache
    [2025-12-27T12:05:28.833Z INFO ] Driver path: C:\Users\Nick\.cache\selenium\chromedriver\win64\143.0.7499.169\chromedriver.exe
    [2025-12-27T12:05:28.833Z INFO ] Browser path: C:\Program Files\Google\Chrome\Application\chrome.exe
    

    So seems we need to:

    1. Just redirect stderr to internal logging (most likely parse the SM's message via regex and convert to internal representation). TBD: what possible log level values. Log levels: INFO, WARN, ERROR, DEBUG, TRACE. If cannot parse message, treat it as panic failure (throw exception) save it in buffer to reveal later.
    2. Capture entire stdout when SM exited, try to parse json. If exitcode is not 0, throw exception. Or if cannot parse json, throw exception. Include entire stdout, it contains error message.
  12. unlocked this conversation on Dec 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    B-managerC-javaC-nodejsC-pyC-rbI-enhancement

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions