Selenium: Invalid “already running” error when starting server

后端 未结 15 2189
名媛妹妹
名媛妹妹 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:29

    I had the same problem , I started my Jboss AP where i have my application deployed and after that tried to run the selenium server and couldn t start. The problem was that Jboss uses the same port that Selenium server uses, so what I did is to start selenium server on a different port

    Solution:

    java -jar selenium-server-standalone-2.0b3.jar -port 1234 -htmlSuite "*firefox" "http://localhost:8080/" "path to the suite" "path to the results"
    
    0 讨论(0)
  • 2021-01-31 03:36

    This worked for me:

    http://localhost:4444/selenium-server/driver/?cmd=shutDownSeleniumServer

    If selenium server is already running on port 4444 then it will shut down the server and says OKOK if selenium is not running on this port 4444 then by hitting above url will give you "Unable to connect"

    0 讨论(0)
  • 2021-01-31 03:36

    One-liner:

    kill -9 $(lsof -ti tcp:4444)

    0 讨论(0)
提交回复
热议问题