Skip to main content

Required Software for Selenium Setup


Ø  Download and Install Java Development Kit (JDK) on Windows using following URL : http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
1.   Select the radio button to “Accept License Agreement” and choose the JDK that corresponds to your OS (Operation System -Windows, Mac, Linux, etc.)
2.   Click on download button and save the file
3.   Once get downloaded after that double click and start installation


Ø  Set Up Java Environment Variable Path
There are two types of environmental variables:

1.    User Variables : Specific to a particular Windows user account
2.    System variables : For all the user of the machine

Step 1: Setting the JAVA_HOME

a.    Right-clicking on ‘My Computer’ and click on Properties


b.   A pop up window will display, Choose ‘Advanced system settings’.


c.    Under the Advanced tab choose the ‘Environment Variable…‘option.


d.    Select New in the System variables.


e.    Define the Variable name as ‘JAVA_HOME‘ and Variable value as ‘C:\Program Files\Java\jdk1.8.0_45 and click OK

Step 2: Setting the PATH Variable

a.    Now we need to specify the location in the PATH variable. For PATH, most probably it will already exist in your machine. So just select it and choose the Edit option.
b.   In the editor add the value “C:\Program Files\Java\jdk1.8.0_45\bin” and click OK button.

Note: The new values are separated by a semicolon from the existing ones and be careful and do not make any changes in the existing string, as it is very sensitive information.
c.       Now go to Start and type cmd in the Run and hit Enter. It will launch the Command Prompt. Type ‘java -version‘, it will display the following information.

Note: Restart the computer in order to make your system aware of these changes.

Ø  Install Eclipse IDE



2.     For Windows users, you will have to know what type of version of your OS you have. If your computer is a 64 bit Windows, select Windows 64 and if you have a 32 bit Windows, select Windows 32 bit.


3.    Click on 32 bit or 64bit  correspond to “Eclipse IDE for Java EE Developers” depends on your system configuration

4.    After clicking download page will open

5.    Click on download button and Save the .zip file to your disk.


6.    Once you have downloaded the Eclipse archive you will need to extract the zip file, which will create the unzipped Eclipse folder.
7.    Open the eclipse folder from the location where you have saved it

8.    Since Eclipse IDE does not have any installer, there will be a file inside the Eclipse folder named eclipse.exe. You can double click on the file to run Eclipse.
NoteThis step is not required, but it’s strongly recommended. Right-click the Eclipse Icon and press “Send To” -> “Desktop (Create Shortcut).” Now you will be able to launch Eclipse from your desktop.
Ø  Download “Selenium web driver  3.11 from https://www.seleniumhq.org/download/
Ø  Download browsers driver for chrome and Firefox
Ø  Install TestNG latest version


Comments

Popular posts from this blog

Eclipse New Maven Project: Could not resolve archetype

Close Eclipse Delete repository folder (you can find it in C:\Users{your user}.m2) Open Eclipse again. It will install maven repository automatically down v Open Window > Preferences Open Maven > Archetypes Click 'Add Remote Catalog' and add the following: Catalog File:  http://repo1.maven.org/maven2/archetype-catalog.xml Description: maven catalog

How to setup Appium for mobile automation

GitHub is a code hosting platform for version control and collaboration.  When a project is to be created, constant changes are made to the code. Version control systems keep these revisions straight, and store the modifications in a central repository.   A repository is a location where all the files for a particular project are stored. Each project will have its own repository, and can be accessed by a unique URL. Step 1: Install Appium-desktop-setup-1.2.6 (from the link Appium.io) Step 2: Install JDK Step 3: Install android studio-bundle (from developerandroid.com) Step 4: Go to AppData->Local->Android->Sdk Step 5: Copy the above path and set the path of a new environment variable “ANDROID_HOME” Step 6: Copy the above path, append \tools and add it in the path variable Steps 7: Copy the path from Step 5, append \platform-tools and add it in the path variable Step 8: Go to AppData->Local->Android->Sdk->tools->bin->uiautomatorview...

Setup Grid and run your test script on different Machine

1. selenium-server-standalone-3.11.0.jar should download on our local machine. we can download this from here  https://www.seleniumhq.org/download/ 2. After that open the command prompt and go in to the drive where we have downloaded "selenium-server-standalone-3.11.0.jar" file and run the command "java -jar selenium-server-standalone-3.11.0.jar -role hub " 3. Once this will execute successfully we can see on console "Selenium Grid hub is up and running" 4. Now we can see GRID console on browser by opening this url:  http://localhost:4444/grid/console 5. Now GRID is setup successfully 5. Now we have to register Node machine with GRID. For this we will open the node machine and download "selenium-server-standalone-3.11.0.jar", chrome driver, Firefox driver form here  https://www.seleniumhq.org/download/ 6. After that we have to register node machine with GRID by running this command using command prompt : For Chrome Browser run this command ...