Selenium 4.35 not ending chromedrivers .net

54 views
Skip to first unread message

Chris Dutton

unread,
Aug 21, 2025, 6:24:28 AMAug 21
to Selenium Users
Hi,
Recently updated to Selenium 4.35, using visual studio and C# and chrome
Visual studio 2022 - 4.8.03761
Selenium.WebDriver.ChromeDriver is 139.07258.6800
Nunit 4.4.0 & TestAdapter is 5.1.0

Run a test, runs and executes correctly but I have a teardown to kill the Chromedrivers at the end of the test.

The test takes longer than usual to complete and doesnt kill the chromedriver. 
Displays in the test explorer    NUnit3TestExecutor discovered 1 of 1 NUnit test cases using Current Discovery mode, Non-Explicit run
Engine encountered NUnitEngineUnloadException :  Exception encountered unloading application domain
NUnit Adapter 5.1.0.0: Test execution complete

Switch back to 4.34 and get none of the above, works fine.

Any ideas?

Jesús daniel Menéndez Roselló

unread,
Aug 25, 2025, 12:23:25 PM (13 days ago) Aug 25
to seleniu...@googlegroups.com
I recently used in python +Selenium and finally used psutil to kill any process 
You can use multiple options obtain pid and then kill it
p = psutil.Process(pid)
p.terminate()


--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/selenium-users/d5850f71-002e-4d93-87bc-f58097fdd032n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages