This error message...
The import org.openqa cannot be resolved
...implies that ChromeDriver wasn't resolved at compiletime.
There can be a lot many resons behind this error. A bit more about your Test Environment e.g. JAR files, Maven or Gradle and the binary versions would have helped us to debug the issue in a better way. You can find a couple of relevant discussions in ChromeDriver and WebDriver for Selenium through TestNG results in 4 errors and java.lang.Error: Unresolved compilation problems : WebDriver/ChromeDriver cannot be resolved to a type error while executing selenium tests
Morepver, as you are using MacOS you instead of using the chromedriver.exe from chromedriver_win32.zip
you need to download, extract and use the chromedriver
binary from chromedriver_mac64 and change the System.setProperty()
line as follows:
//without the extension (.exe)
System.setProperty("webdriver.chrome.driver", "/Users/shilpa/Documents/Selenium/Selenium Softwares/chromedriver");