Tuesday, March 13, 2012

Selenium IDE Introduction


 Selenium IDE
Its user interface for generating automation test quickly.
IDE can learn scetamaticly and perform them repeated step quickly that record and play.
Selenium IDE is browser base application as long as it is web base. It is come only with Firefox.
It exports tests in different languages. The most appealing
format is the html test case.
This greatly simplifies the acceptance testing. Selenium tests should be considered as complimentary testing to unit tests.
IDE can use for the Parameterised data.
In selenium ide the script executed in the JavaScript
It has debug and set breakpoints.
It can also export Remote control or Web Driver scripts.


How to install Selenium IDE?


1. Go to Google
2. Type selenium download
3. Visit selenium HQ link
4. Click on the selenium IDE latest version
It is add-on of the Firefox.
It is present in the tool menu of the Firefox.
By default it is come with recording mode.
In Selenium IDE generated three column the command, target, and value
Command it is nothing but “what part wish to perform”?
Target it is “where to open” nothing but it's give the location of the element. The base URL followed by main URL (Element given the target)
Value “what do you want to type”
While recording selenium IDE store all the command in user interface
You can record multiple Test Cases
Maximum time to load the page in IDE is 30sec.30 sec is max time otherwise it is throwing the error
How to do Debugging?
Select the command from where want to do debugging by clicking right click toggle/breakpoint option


Difference between Assert and Verify:

Assert: It is allow the test to check if the element is present on the page or not if not then test will stop on the failed step.
Verify:It is allow the test to check if the element is present on the page or not if not then test will carry on.


Selenium Command:

waitFor: waitFor command timeout after 30sec by default.It's use to wait for item/element that you need to work and interact with it.It is require a page load from a web server.There are so many waitFor command is available
storedVars- It is use to store element that are on the page to be used later
 Format1-${value}
Format2-javascript{storedVars[‘value’]} (Note: if do not want to write the javascript then use the command
echo- it is use for the print.

Related Document :
What is XPath?


No comments:

Post a Comment