Get PID of browser started by Selenium (in java)
问题 Is it possible to get the PID of the browser that is started by Selenium Webdriver. This would have to be in Java, as that is how I run webdriver. Is that possible? 回答1: Not particularly, you would have get the list of processes currently running and filter it down. There is no special attributes or features that Selenium uses to launch a browser. Therefore, if you are running an instance of that browser that was launched manually , you will get that too. That is to say that if you have two