WebDriverException - error fails the test case

WebDriverException: Message: ‘chromedriver’ executable needs to be in PATH.

i have defined the path under .bash_profile.
still, when i type the below command in the terminal - chromedriver PATH is not recognized.
echo $PATH

Kindly advice.

This is a Linux thing. You need to re-activate the .bash_profile. You can do this by closing that terminal, and opening another, or by entering the command:

source .bash_profile

or its alias

. .bash_profile

Still facing the same issue. Attached are the screenshots.
ChromedriverPathNOTSET