How to resolve “IllegalStateException: path to be set by” in selenium?

In this video we will see how to fix/troubleshoot/resolve error “Exception in thread “main” java.lang.IllegalStateException: The path to the driver executable must be set by the system property” in selenium webdriver.

I hope you like this video. For any questions, suggestions or appreciation please contact us at: or email at:


Error Text screenshot

Running the application

Error Resolved screenshot

Leave a Reply