This project is read-only.
Install Selenium IDE
Install/Update the Selenium Server
Install/Update Selenium Client & WebDriver Language Bindings
anchorName
anchorName
anchorName

Selenium

Selenium was originally created by Jason Huggins in 2004 to test web applications at Thoughtworks. He developed a JavaScript library that could interact with webpages, allowing him to automatically rerun tests amongst multiple browsers. “That library eventually became Selenium Core which underlies all the functionality of Selenium Remote Control (RC) and Selenium IDE. Selenium RC was ground-breaking because no other product allowed you to control a browser from a language of your choice.” (Selenium HQ, 2013) In 2006, Simon Stewart created WebDriver which extends the capabilities of Selenium RC. He then merged Selenium and WebDriver. Selenium had massive community and commercial support, but WebDriver was clearly the tool of the future.

Crystal Test was created to merge Selenium Web Driver with a custom Test Management System and front end GUI for running both manual and automated tests, reviewing results, and controlling the WebDriver test grid. In this document, we will learn how to install and setup Selenium and its various tools.

Installing and Updating Selenium

Install Selenium IDE

The Selenium IDE is a Firefox plugin that is used to record and playback the basic steps of the automated script. You should use the IDE first to record the basic syntax and/or steps for the script. However, the IDE recorder should never be considered as a "record, save, and run it" tool as it only works in Firefox and is missing certain vital features of a testing tool: conditional statements, loops, logging functionality, exception handling, reporting functionality, database testing, re-execution of failed tests and screenshots taking capability. Although there have been plugins created for the IDE to extend its use, it is still not quite a complete solution. For this reason, we use the IDE only as a starter to the script written for Crystal Test. If you would like to review these optional plugins, they can be found at http://docs.seleniumhq.org/download/#side_plugins. Follow the instructions below to download and setup the Selenium IDE.
  • Navigate to the selenium download page http:/seleniumhq.org/download/ and download the latest version of Selenium IDE
Selenium-IDE-Download.png
  • Open your Firefox browser
  • On the menu, click Tools -> Add-ons
  • In the Add-on manager, click the Extensions tab.
  • Click the settings gear and choose Install Add-on from File…
Selenium-IDE-Install.png
  • Navigate to where you downloaded the Selenium IDE file and select that file.
  • You will need to restart Firefox after installing.

Install/Update the Selenium Server

The Selenium Server (aka Selenium WebDriver) is needed in order to run either Selenium Remote Control style scripts or Remote Selenium Webdriver scripts. For an extensive dive into Selenium WebDriver, visit http://docs.seleniumhq.org/docs/03_webdriver.jsp

If you followed the steps in Setting Up Your Local Folders, then your Selenium Server already exist on your system. To verify that Selenium Server already exists, navigate to C:\SeleniumServer. If the Selenium Server exists, there will be a file named selenium-server-standalone-X.XX.X.jar. If it does not exist or you need to update it with a newer version, follow the steps below:

Selenium-Server-Download.png
  • Save the Selenium Server file to C:\Development\SeleniumServer. If this is an update, delete the previous version. I recommend keeping a copy of previous server files in case of the need to rollback.
  • In C:\SeleniumServer\, open each HUB file in Notepad or other text editor. (HUB-Local.bat, HUB-Prod.bat, HUB-Stage.bat)
  • Replace the old server name with the new one. Usually this will just require changing some numbers.

Selenium-Server-HUBUpdate.png
  • Save and close each HUB file.
  • In C:\SeleniumServer\, open each Node file in Notepad or other text editor. (NODE-Local-IE9-FF-Chrome, NODE-Prod-Chrome.bat, etc)
  • Replace the old server name with the new one.

Selenium-Server-NODEUpdate.png

Install/Update Selenium Client & WebDriver Language Bindings

Last edited Aug 5, 2014 at 8:31 PM by jacquelinewalton, version 13