Skip to content

[🐛 Bug]: [Python] webdriver.service.process #16543

@dornech

Description

@dornech

Description

I was used to use webdriver.service.process.pid to killö a "surving" webdriver process. With upgrading to 4.38 due to a BiDi issue I now get an mypy error stating that webdriver.service.process has gone. I also do not find it in the sources.

Did I overlook something or is there a change ?

I mean, I see the POpen and the assignment to self.process in service.py but I wonder why mypy does not recognize it as before.

Reproducible Code

atexit.register(kill_driver_processes, browser, webdriver.service.process.pid)

Debugging Logs

MyPy error:
error: Item "None" of "Service | None" has no attribute "process"

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions