Is Selenium the Right Automation Testing Tool For You?

September 1, 2017 Appirio

By Niza Khunger

People are sometimes confused about what automation testing tools are out there, and which one is best for them. There are basically two most widely used choices available in market today — Quick Test Professional (QTP), an automated functional testing tool which is commercial and licensed. And Selenium, an open source automation testing tool for web applications across different browsers and operating systems.

Selenium’s Tool Suite

The suite package consists of the following tools:

Selenium IDE
•Selenium RC
•Selenium Webdriver (widely used)
•Selenium Grid

Selenium Integrated Development Environment (IDE)

Selenium IDE is a record and playback tool. It is distributed as a Firefox Plug-in, thus it is supported by Firefox only and the created test scripts couldn’t be executed in any other web browsers, which makes this tool inappropriate to be used for complex test scripts.

Selenium 1 (aka Selenium RC or Remote Control)

Selenium RC allows user to create test scripts in a multiple programming language like Java, Ruby, C#, Perl etc. You can run your same script in multiple platform like Windows OS and Linux. It also allows executing test scripts within the large spectrum of browsers. Similar to Selenium IDE, the RC also has its own limitations. Before testing can begin, Selenium RC requires that the server be started before executing the script.

Note: Selenium 1 is now deprecated and is not actively supported.

Selenium 2 (aka Selenium WebDriver)

Selenium RC was the highly popular Selenium project for a long time, but only until their WebDriver/Selenium merger brought up Selenium 2 — the newer and more powerful tool, as it directly communicates with the web browser and uses its native compatibility to automate.

The following programming languages are supported by WebDriver:

• Java
• .Net
• Perl
• Ruby

Selenium Grid

Selenium Grid supports the execution of parallel tests remotely, where we can run different tests at the same time.

How do you setup and configure a Selenium Webdriver With Eclipse and Java into your system?

To setup and configure Selenium Webdriver follow these easy steps:

Step 1: Download and install JDK (Java Development Kit)

For downloading Java, click on this link and accept the license.

Step 2: Download and install Eclipse

In the second step, download and install Eclipse from the link below:

Step 3: Download the Selenium Java Client Driver

Download the Selenium Java Client Driver from:

Step 4: Configure Eclipse to work with Webdriver:
Double click on ‘Eclipse.exe’ to launch eclipse and add your workspace, or choose the default option.

Step 5: Create a New Java Project in Eclipse IDE:

For creating a new Java Project
         1.  File > New > Project

  1.  Java > Java Project > Next

  1.  Enter a Project Name (e.g., “MyProject”) then click the Finish button.

Step 6: Add JAR Files for Selenium Webdriver Configuration

After creating “MyProject”, we need to add Jar Files to the Library:

  1. Right-click on “MyProject” and select “Build Path” and then “Configure Build Path”.
  2. This will open a Properties dialog and go to the Library Tab. After that, click on “Add External JARs”.

3. Now add the JAR files downloaded in Step 3.

Note: Add all the JAR files inside and outside the “Lib” folder.
            These are the Jar files present outside the “Lib” folder:

4. Then your Properties dialog should look similar to the image below:

5. Finally, click the OK button, and you’re done importing Selenium libraries.
      Now, we are ready to write our test script in Eclipse and run it in WebDriver.




Previous Article
Single Sign-On In Salesforce
Single Sign-On In Salesforce

Next Article
Prevent Flow Updates With Triggers
Prevent Flow Updates With Triggers

By Nitish Bansal In this blog, we will discuss some considerations of using Salesforce Workflow field updat...