Using Selenium IDE
Introduction
Selenium IDE is a Firefox add-on that makes it easy to record and playback tests in Firefox 2+. You can even use it generate code to run the tests with Selenium Remote Control.
Things you will need
- Selenium IDE
- Firebug
Bothe of above come as Firefox add-ons.
Selenium issues
- Many JavaScript frameworks generate lots of html tags with auto generated ids. Such pages are difficult to record.
- In some cases html elements ids changes between user sessions
Suggestions
- Explicitly mention id wherever possible
- Give explicit id to html tags like :-
- input
- image
- anchor
- button
Two important question
- What command to use?
- On which element (target)?
There answers
- Selenium Documentation
http://seleniumhq.org/documentation/core/reference.html
- X-path Basics
http://www.w3schools.com/XPath/xpath_syntax.asp
How to go about it?
No comments:
Post a Comment