Skip to content

Accessing Selenium Grid SessionId (and logs in general?) #22167

@kelmelzer

Description

@kelmelzer

I've implemented Playwright alongside Selenium in a test automation framework, and we instantiate all of our browsers through Selenium Grid (if possible). I have a requirement to save the session id in case I needed to later kill the automation by session id during the run.

I poked around in the typescript and saw Playwright does log the session id in the _launchWithSeleniumHub method in chromium.ts, so I was wondering if the that is something that can be more easily exposed?

Also, is there a way I can access the Playwright logs stream in general (outside of errors) via C#?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions