I'm using BASH scripts to check if Selenium is up and running before continuing with a test.
In the past for Selenium 2 I have used the below command to test if the server is up or not.
http://<<selenium_pc>>:4444/selenium-server/driver/?cmd=getLogMessages
This returns back "OK,". I use curl and store the value returned back in a variable and then just compare to see if should continue the test.
When I moved to Selenium 3 I haven't been able to find this equivalent command. What I am doing in the meantime is to use curl to get the page back and store it in a variable and then compare that against a file I saved locally and catted in to another variable for comparison.
This isn't as elegant.
I could use:
http://<<selenium_pc>>:4444/wd/hub/status
But this gives me a JSON object back that has a hCode value that always changes.
Am I missing anything obvious?
Adam