serenity-bdd / serenity-core

Serenity BDD is a test automation library designed to make writing automated acceptance tests easier, and more fun.
http://serenity-bdd.info
Other
719 stars 516 forks source link

Serenity isn't stopping chromedriver process when we close or quite driver #3499

Open bachhavdipak opened 2 months ago

bachhavdipak commented 2 months ago

What happened?

Serenity isn't stopping chromedriver process when we close driver

What did you expect to happen?

Serenity should stop chromedriver process when we close or quite driver

Serenity BDD version

4.0.46

JDK version

17

Execution environment

No response

How to reproduce the bug.

image

How can we make it happen?

Work on this myself and propose a PR (with Serenity BDD team guidance)

bachhavdipak commented 2 months ago

I am also facing this issue on latest version serenityCoreVersion = 4.1.20 and serenityGradlePlugin = 4.1.14

fabcep commented 2 months ago

Hi, I am facing a similar issue. In my case, when running feature file the browser processes getting shut down by the chrome driver, but it leaves zombie processes running in the background. I could track down the issue down to selenium DriverCommandExecutor, there is some concurrent code here, I'm suspecting this sometimes skips a few processes.

Versions:

net.serenity-bdd:serenity-core:4.1.20 chrome version: 126.0.6478.183 (Official Build) (64-bit) (cohort: Stable)

Test running from junit with both junit4 and 5.

This might be related or a separate issue.