Selenium: Invalid “already running” error when starting server

后端 未结 15 2241
名媛妹妹
名媛妹妹 2021-01-31 02:32

I am trying to get the Selenium server up and running. However, when I type:

java -jar selenium-server-standalone-2.0b3.jar

I get an Exception

15条回答
  •  一个人的身影
    2021-01-31 03:15

    If you started Selenium using Java (instead of via whatever testing framework you may or may not be using), you can kill all leftover Selenium instances with:

    pkill java

    That's guaranteed to kill any java relics (including selenium if started this way) - but be careful here - caveat is that you might be killing other procs too (due to the way pkill works). In my case, I want to kill anything running in the JVM, so this solved it for me.

    As per the comment from Goldberg below, note that this will not kill any driver services or browsers running on your system!

提交回复
热议问题