SELENIUM IDE
Installing IDE:
Got to Google
Type download selenium IDE
Click on search
Click on first link (download selenium)
Click on version no (under selenium IDE section)
Click on install
Navigation for accessing the selenium IDE in
Firefox:
Activate menu item tools
Select option Selenium IDE or ctrl + Shift + S
Operational overview of recording:
During recording SIDE will do the following
It will
generate the commands for user actions on the application.
It will store the information to identify that
object in the form of target,
If at all
the operation is required to store a value then it will store that value.
Operation overview of running:
During running SIDE will do the
following
Using the target it will identify the object.
Understanding the command then it will do the
operation on that object
Inserting break point:
Break point is a feature provided in SIDE which is
used for temporarily breaking the execution./*/
Navigation:
Activate menu item Actions
Select the option Toggle Breakpoint
Running scripts line by line (Debugging):
To do debugging in SIDE they have provided Step
command which is used to execute single step and break the execution.
Inserting comments: comments are
used for increasing the readability or understandability of a
program.-/Navigation:
Activate menu item edit
Select the option insert new comment
Inserting wait statement
(Synchronization):
whenever the application is taking some time to do some work and if at all we
want the tool to wait till the application allows it to do the next operation
then we need to insert wait statement. There are different predefined wait
commands provided by the SIDE which we can use directly by typing them in the command.
Running the single line of script: To run a single
line of script, do the following
Select the line
Activate menu item actions
Select the option Execute This Command
Analyzing the results in log: once the execution
is finished SIDE will show step by step results in log tab so that one can
easily analyze the results.
Syntax and description of commands: here reference
tab will provide the syntax and description of any command so by using this one
can easily understand what is the purpose of any command and what are the
arguments to be passed to that command.
Target: it is something which is used for
identifying the object in the application it may be xpath or id or name...
e.t.c.
In SIDE it will show the statements in two views
Table view
Source view
Table view: it shows the statements in a GUI which
is further divided in to 3 parts
Command
Target
Value
Source view: it shows the same statements in html
format.
In this view <tr> tag indicates one row of
the table (one statement) and <td> tag indicates one cell of the table
In SIDE every table row (<tr>) contains 3
cells (<td>)
Note: generally
SIDE is not encouraged in the companies because it works only with Firefox and
also not so powerful like eclipse.
No comments:
Post a Comment