How to install Selenium WebDriver on Mac OS

MacosSelenium

Macos Problem Overview


How to install Selenium WebDriver on Mac OS X 10.7.5 supporting Chrome, Firefox and safari ? What I have to set, where to install.

Macos Solutions


Solution 1 - Macos

Install

If you use homebrew (which I recommend), you can install selenium using:

brew install selenium-server

Running

updated -port port_number

To run selenium, do: selenium-server -port 4444

For more options: selenium-server -help

Solution 2 - Macos

Mac already has Python and a package manager called easy_install, so open Terminal and type

sudo easy_install selenium

Solution 3 - Macos

To use the java -jar selenium-server-standalone-2.45.0.jar command-line tool you need to install a JDK. You need to download and install the JDK and the standalone selenium server.

Solution 4 - Macos

First up you need to download Selenium jar files from http://www.seleniumhq.org/download/. Then you'd need an IDE, something like IntelliJ or Eclipse. Then you'll have to map your jar files to those IDEs. Then depending on which language/framework you choose, you'll have to download the relevant library files, for example, if you're using JUnit you'll have to download Junit 4.11 jar file. Finally don't forget to download the drivers for Chrome and Safari (firefox driver comes standard with selenium). Once done, you can start coding and testing your code with the browser of your choice.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
Questionuser2790794View Question on Stackoverflow
Solution 1 - MacosWillView Answer on Stackoverflow
Solution 2 - MacosIvan ProskuryakovView Answer on Stackoverflow
Solution 3 - MacosLaura Hannah VachonView Answer on Stackoverflow
Solution 4 - MacosDonshonView Answer on Stackoverflow