Selenium 4.35 not ending chromedrivers .net

93 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 PMAug 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.

Chris Dutton

unread,
Sep 11, 2025, 8:16:58 AMSep 11
to Selenium Users
Found out the issue was with a piece of code that was checking if 'RunningTest' was empty after all tests have been removed for RunningTest collection.  Previously before updates this was fine but now causes the error above.  Tbh that piece of code was not action so has been removed and now working ok.
Reply all
Reply to author
Forward
0 new messages