Introduction to Selenium

Selenium is a Test Automation tool used for automating Web Applications testing.  Before starting to learn this tool, I strongly recommend downloading any of the Open Source web application from sourceforge.net.  I will be using Sugar CRM for demonstration purposes.  I have chosen this application mainly because this has a free edition.  We can just download the community edition and start using it.

You can download Sugar CRM from the following location: Sugar CRM Community Edition – Open Source

But this web application requires a web server (Apache), PHP, and a database (MySQL/SQL server).  Either we can download them individually and configure them to run the SugarCRM or we can download the Stack Installers for Sugar Community Edition 

I suggest installing FastStack Windows Installer for MySQL.  This will install Apache, MySQL, and PHP and configures the SugarCRM and we can directly access the application from browser.

SugarCRM installation

Installation of SugarCRM community edition:

  1. Download the SugarCRM Community edition
  2. Double Click the installer
  3. Click next and just provide credentials for MySQL and initial login into SugarCRM.

Access the application using the URL – http://127.0.0.1/sugarcrm/index.php?action=Login&module=Users&login_module=Home&login_action=index

sugarLogin

Login with default username – admin and password which you have given during installation.

Now, we need to download Selenium and this can be downloaded from Seleniumhq.org.  If you are new to Selenium, you may wonder which of the application in “Downloads” section needs to be downloaded.  Don’t bother, initially just download Selenium IDE and Selenium RC.  I will explain both of these in detail in the subsequent posts.

Selenium IDE is an extension to Mozilla Firefox.  When you download this it will get installed on the Mozilla as an Add-On.

Selenium IDE

To start accessing Selenium IDE:

1. Open a new Firefox browser

2. Click on tools

3. Click on Selenium IDE

You are done!!

Now we can start automating the tests with Selenium IDE.

Comments 9

  • Sitaram, can you please let me know how to use regular expressions.
    E.g:
    driver.findElement(By.id(“username”))

    I know contains and starts-with.
    Don’t know even basics about others.
    Can u please give 2 lines with 2 different regexps syntax. I saw may posts, but I was confused to understood them

  • Hi Seetaram sir,

    i am working on selenium, i am facing troubles in writing Xpaths, please give some tips to write Xpaths.

  • Can some body clear me my doubt. What is the exact difference between Selenium RC and Selenium web-driver . What are the limitations of RC. why we go for Web-Driver

  • Hi seetaram..i am new to selenium and unable to install Selenium IDE which it shows does not compatible with Firefox..plz tell which version i wana go to install.. Firefox, selenium ide, RC and Firebug

  • Hi Seetaram,

    I am totally new to automation with very little knowledge of installation. I am on the following steps: Installation of SugarCRM community edition: 2. Double Click the installer
    My question is after I have downloaded and extracted the zip file SugarCE-6.5.10. How do I do the installation? There are various folders under this file and I do not see the installer or an .exe file? Can you please help?
    Thanks,
    Aabhaa.

  • Hi,
    Please help to step by step process to install Sugar CRM product
    Thank you very much for your help

  • Hi,
    I have downloaded SugarCRM community edition. My question is after I have downloaded and extracted the zip file SugarCE-6.5.10. How do I do the installation? There are various folders under this file and I do not see the installer or an .exe file? Could anyone please help.

    Many Thanks in advanc,

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.