Selenium: Invalid “already running” error when starting server

后端 未结 15 2196
名媛妹妹
名媛妹妹 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"
    

提交回复
热议问题