Any way to get the PID of geckodriver?

21 views
Skip to first unread message

Tod Hagan

unread,
Oct 4, 2018, 5:50:47 PM10/4/18
to Selenium Remote Driver
Dumping a Selenium::Firefox object reference doesn't reveal the PID of geckodriver anywhere. Same for Selenium::Remote::Driver.

Am I missing it somehow or is it really not there?

I would think this would be needed for auto_close to correctly remove everything that was started.

Thanks.

George Baugh

unread,
Oct 22, 2018, 10:51:56 AM10/22/18
to Selenium Remote Driver
The problem has been rendered moot in https://github.com/teodesian/Selenium-Remote-Driver/commit/920889dc4edc745722a3aa57814fd9e6176c2667

Summary: we can't get the PID because the command we run immediately forks & exits (e.g. it daemonizes).

Better solution was to find every process running on the port and whack it.

GSB

Tod Hagan

unread,
Oct 23, 2018, 5:41:02 PM10/23/18
to teod...@gmail.com, selenium-re...@googlegroups.com
Thank you for answering. This is good to know.

--
You received this message because you are subscribed to the Google Groups "Selenium Remote Driver" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-remote-d...@googlegroups.com.
To post to this group, send email to selenium-re...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-remote-driver/586d182e-a339-41db-b40f-aa48bee5082d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages