Execute Selenium test on chrome browser on MAC using Selenium

To start any third party browser (Chrome, Opera etc.) Chrome browser on MAC using Selenium we have to use some drivers which will interact with the browsers.

In windows, we have already seen working with IE, Chrome, Firefox and mobile browsers as well.

In windows, it’s quite easy to download and specify the path in the program but in MAC we have to keep all the driver in a specific folder and then Selenium will start the execution directly.

 

First step- Download the drivers for MAC

Download link  http://chromedriver.storage.googleapis.com/index.html?path=2.23/

Chrome Browser ON MAC using Selenium

Second step- In MAC we have one directory called /usr/local/

Chrome Browser ON MAC using Selenium

 

 

Chrome Browser ON MAC using Selenium

In above location, you can create bin folder (if not created).

Now you have to copy the driver in /usr/local/bin and that all

 

Good thing which I like here is we don’t have to remember the path variable like webdriver.chrome.driver

Chrome Browser ON MAC using Selenium

Program for Chrome browser on MAC using Selenium

 

Hope you have liked the above article, I have used in a straight way but if you know any other way to handle drivers in Selenium then feel free to share your thoughts in comment section.

 

 

4 Comments

  1. Mrinal kumar
  2. Raja

Leave a Reply