How do you resolve ChromeDriver Cannot be resolved to a type?

What is the fix to ChromeDriver Cannot be resolved to a type?

Check out the steps below to fix the problem: -

  1. Build a separate Java Project >class
  2. Create a class name.
  3. Right-click on the project and select Property > Build Path > Libraries.
  4. External Jars from the Selenium client and web driver language binding should be added to the Classpath. Apply and then close.