I would like to get the PID of the browser launched by selenium. Is there any way to get it done?
If you're using PhantomJS then you can get the PID from the process Popen object:
from selenium import webdriver browser = webdriver.PhantomJS() print browser.service.process.pid