Selenium
is a free (open source) automated testing suite for web applications
across different browsers and platforms.
The
following are the components of Selenium:
Selenium
Integrated Development Environment (IDE)
Selenium
Remote Control (RC)
WebDriver
Selenium
Grid

In
selenium 1.0, there is a concept called Selenium RC, but in selenium
2.0, that Selenium RC & WebDriver are merged together.
Selenium IDE:
Selenium
IDE(Integrated Development Environment), also called as SIDE, the
language which is used in SIDE is called as “Selenece”.
Commands
of Selenece:
Selenece
commands are of three types
- Actions
- Accessors
- Assertions
These
commands are used to generate script in selenium IDE, in order to
identify elements in the web page need to use locators with these
commands.
Locators:
Locators
are used to identify the HTML element that the command refers to.
- id=id
Used to find the element with the specified "id"
attribute.
- name=name
Select the first element with the specified "name"
attribute
- dom=javascriptExpression
Selenium finds an element by evaluating the specified string that
allows us to traverse through the HTML Document Object Model using
JavaScript. Users cannot return a value but can evaluate as an
expression in the block.
- xpath=xpathExpression
Locate an element using an XPath expression.
- link=textPattern
Select the link element (within anchor tags) which contains text
matching the specified pattern.
- css=cssSelectorSyntax
Select the element using css selector.
Installation of Selenium IDE:
Selenium
IDE is an add on of Mozilla Firefox Browser, It works only when Firefox browser is active.
Before
installing Selenium IDE, you must have an active internet connection
also.
Install
Mozilla Firefox from the following URL:
http://www.mozilla.org/en-US/firefox/new
Install
Selenium IDE with following steps:
Launch Firefox and navigate to the following link →
http://seleniumhq.org/download/
When
you click on this link, a pop up will come like below.
Click
on “Allow” to accept security terms, next it will pop up below
window.
After
completion of total download, it can show below pop up.
Finally
click on “Restart Now” to complete installation, and Firefox will
restart.
When
you Restart firefox, an icon of SIDE will appear at the top right
corner of firefox browser window. Just click on that icon to launch
Selenium IDE.
You
can see a window like below, That is Selenium IDE.
Installation
of FireBug
We
have two types of Firebugs. One is FireBug and another one is FireBug
Lite.
FireBug:
It is an add on of Firefox, It can be useful to
Inspect the Elements of the Web Application under test. That can be
like below.
To
launch FireBug, just press F12, it will pop up FireBug.
FireBugLite: It is an add on of Chrome Browser.
Process
to install FireBug:
Goto
https://addons.mozilla.org/en-US/firefox/addon/firebug/,
and type firebug then press enter.
Click
on “Add to Firefox”, to install firebug.
Finally,
it will show a pop up, on that click on Install to complete
installation.
Then
Firefox will restarts, then you can find firebug at the top right
corner of the Firefox Browser.
No comments:
Post a Comment