I am trying to setup Selenium with PHPUnit for automated testing, but when I want to execute jar file using this command
java -jar /usr/local/bin/selenium-server-standalone-2.53.0.jar "
it is showing this error:
How can I fix this? Please help.
I am trying to setup Selenium with PHPUnit for automated testing, but when I want to execute jar file using this command
java -jar /usr/local/bin/selenium-server-standalone-2.53.0.jar "
it is showing this error:
How can I fix this? Please help.
Based on changelog, selenium requires Java 7 (1.7) or 8 (1.8) since release 2.47, while the screenshot you posted shows version 6 (1.6). So either you need to install Java to 7 or 8, or make it default, if it's already installed. Since it appears that you are on MacBook-Pro, check the following instructions: How do I install Java for my Mac?. If java 7 or 8 already installed, check this page on how to make it a default.