Wednesday, 1 August 2018

Working with selenium IDE: Part-1



Components in Selenium IDE:
--------------------------


1. Menu bar:
where we have menu options to perform operations on Selenium IDE
2. Base url:
it refer AUT url
3. Test Case Pane:
where we can find list of test cases which are created by us
4. Script Editor:
where we generate automation script using Recording option or manually
there are 2 views in Script Editor
i. Table view:
script geenrates in terms of tabular format
components in Table view
a. Command:
where we can find methods to perform operations on AUT
i. open: to open base url
ii. type: to enter data
iii. select: to select value from dropdown
iv. click: to click on element and to continue
v. clickAndWait: to click on webelement and to wait when application taking sometime to
complete transaction (max. 30 sec)
b. Target:
where it shows webelement attribute/html property values
c. value:
data to be provided for AUT during runtime


ii. Source view:
in this view by default script will be in html format

5. log & Reference:
a. Log:
where we can find script execution result
b. Reference:
where we can find information about Selenium IDE commands
=============================================================
Generating script:
a. using Recording option:
Navigation:
open FF browser
"Tools" menu in FF
select "Selenium IDE"
enter url in FF browser
perform required operations on AUT, which operations do you want to convert
into automation script
click on "Record" icon to stop recording


Excercise:
Create script to perform user registration in http://newtours.demoaut.com

















No comments:

Post a Comment