This error is just bizarre, my code compiles fine, I can see there are no problems with it, yet this error has just popped up. I have tried re-starting NetBeans and there is
Add selenium-server-standalone-3.4.0.jar. It works to me. Download Link