I hope this would help you out for hassle free installation.
Windows
Download java
In order to install selenium on you system check if Java is present in your system preferable(1.8.)
1. open command prompt(cmd)
2. type -> Java -version
if java is not installed please download the above mentioned version of Java from here, for windows files are .exe files
Download eclipse
To download and install eclipse for Windows use this link (zip file)
Download Maven
Download Maven by using this link on your system using the mentioned link, click on "Binary Zip archive" link which is a compressed file, extract (.exe) and install maven
Setting up environment variables
Java
Go to system properties-> click on environment variables->click on Edit
Enter variable name as "Java_Home" and variable value as "path where your Java is installed"
(by default it will be in your c drive folder program files) copy the path and click OK.
repeat the same in system variable and user variable
Maven
Go to system properties-> click on environment variables->click on Edit
Enter variable name as "Maven_Home" and variable value as "path where your Maven is installed"
(by default it will be in your c drive folder program files) and click OK.
repeat the same is system variable and user variable
Downloading Maven in eclipse
Macintosh
Download java
In order to install selenium on you system check if Java is present in your system preferable(1.8) version
1. open Terminal
2. Type-> Java -version enter it will show youth version of java installed in your system
if java is not installed please download the above mentioned version of Java from here (for Mac executable files are in .dmg format )
Installing eclipse
To download and install eclipse for Mac use this link(dmg file)
Installing Maven
Download Maven from here on your system, click on "Binary tar.gz archive" link which is a compressed file extract(.dmg) and install maven
Setting up environment variables
Java
As the environment variable should be created in .bash file so we need to first check if .bash file is present in the directory.
To check. Go to Terminal and enter command->
ls -al(it will list all files and folders present if directory)
To create a bash file enter command touch .bash_file once bash file is created.
Enter command Is -al (It will show .bash file created)
To open .bash profile in edit mode Go to Terminal and enter command->
open -e .bash_profile a new window of ".bash profile" would open, copy and paste the below statement export JAVA_HOME=$(/usr/libexec/java_home) and save the .bash profile
Go to Terminal and enter command echo $JAVA_HOME It will give you the current path of java
Maven
As we have created .bash profile . Open the .bash profile be entering the command in terminal
open -e .bash_profile now copy and paste export M2_HOME=(Path of your Maven)
To get Path of maven enter mvn -version in terminal
export M2_HOME=/users/priyankac/apach-maven=3.6.3 and also paste
export=$PATH:$M2_HOME/bin. and save the file
After the .bash file is updated with path of Java an Maven it would look like this
Downloading Maven in eclipse
Maven
Once you are able to open eclipse go to help->Eclipse marketplace-> search for m2e-> "maven integration" for eclipse and install.
Give yourself a pat on your back you are done installing Maven to your Mac system
In order to install TestNG and Cucumber on your Mac systems watch out for my next blog
Comments
Post a Comment