Introduction to Selenium

by seetaram on February 5, 2011

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.

{ 9 comments… read them below or add one }

suresh October 28, 2011 at 3:37 pm

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

Reply

Shivaraj January 16, 2012 at 12:50 pm

Hi Seetaram sir,

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

Reply

navs December 5, 2012 at 11:59 am

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

Reply

Mallesh December 10, 2012 at 6:43 am

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

Reply

seetaram August 22, 2013 at 6:24 am

Need to check the Seleniumorg

Reply

Aabhaa March 6, 2013 at 6:38 pm

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.

Reply

PRatibha May 27, 2013 at 10:04 am

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

Reply

Mayank June 19, 2013 at 2:06 pm

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,

Reply

seetaram August 21, 2013 at 8:57 am

You should download the installer version. i.e. exe

Reply

Leave a Comment

Next post:

Do you want to get updates on the recent articles written? Please subscribe to RSS feed or Email