p.s i need the path for test automation
With respect to the path output, I don't know what that means.
Do you need a unix path?
You can create a Service in Automator that will copy the unix path to the clipboard. It looks like this:

The Shell Script is this:
sed -e 's/:/\//g' -e 's/\ /\\ /g' -e "s/\\'/\\\'/g" -e 's/\"/\\"/g' | tr -s "\n" | pbcopy
Save the Service with a descriptive name like "Get Path"
You can ctrl- (right-) click on selected files and choose the Service from the Services submenu. It will parse the path and copy it to the clipboard, one line per file.
You can even set a shortcut for it in the Keyboard System prefs, Shortcuts, Services. It will be listed in the Files & Folders section.
When it runs, you'll see a spinning gear in the menu bar. Sometimes it takes a few seconds. When the gear goes away, you can paste the path where you need it.
Sometimes it happens so quickly you don't see the gear.