I'm tring to use Selenium for PHPUnit. But for first attempt, something went wrong.
I have error "invalid session id" in PHPUnit, but Selenium logs says, that everything is fine. Full text of error:
{stacktrace=#0 0x55c2598402d3 <unknown>, error=invalid session id, message=invalid session id}
What I did.
Has installed php 7.3:
apt install php7.3
Installed Java:
apt install default-jdk
Downloaded Chrome Driver ChromeDriver 81.0.4044.138
Downloaded Selenium server stanalone
Now I understood, that I dowloaded wrong version of Selenium Server.
- Wrong: selenium-server-standalone-3.1.0.jar
- Right: selenium-server-standalone-3.141.59.jar and higher.