Tuesday 29 July 2014

How to setup chrome driver on mac selenium bdd cucumber automation

How to setup chromedriver path on mac laptop to selenium cucumber automation scripts.

1) First download chrome driver from the following path

2)  From your mac search for "AppleScript Editor"
AppleScript Editor will open editor please paste the below code and click run
do shell script "/Applications/Chromium.app/Contents/MacOS/Chromium --user-data-dir=/Users/$USER/Library/Application\\ Support/ChromiumPersonal > /dev/null 2>&1 &
Popup window will come and ask you to enter untittled name
enter "Chrome" Save it on Applications location.
3)Open chrome browser which is already installed on your mac and type below link on browser url
//Applications//Google Chrome.app//Contents//MacOS//Google Chrome
It will download chrome ... let it download
Then go to your Selenium or cucumber java code give this path as chrome driver path 
'//Applications//Google Chrome.app//Contents//MacOS//Google Chrome'
Now it should work . Note in MAC there is no .exe just like in windows system.Here we use above path.

If you feel it is useful please share on facebook and please like on facebook icon.


No comments:

Post a Comment