Introduction to Selenuim IDE,FireBug,Firepath

  • Selenium IDE is an automated testing tool that is released as a Firefox plug-in which records and plays back user interactions with the browser.

  • Being a Firefox plug-in, Selenium IDE supports only Firefox, thus the created test scripts could be executed only on Firefox

  • Created test scripts can be export to Remote Control or WebDriver scripts formats.

Installation of Selenium IDE

  • Lunch https://addons.mozilla.org/en-US/firefox/addon/selenium-ide/

  • Click on "Add to firefox" Link

  • After the installation we can see selenium IDE indexed under menu bar -> Web Developer -> Selenium IDE.

IDE File Menu bar- It allows user to:

  • Create new test case, open existing test case, save the current test case.

  • Export Test Case As and Export Test Suite As in any of the associated programming language compatible with Selenium RC and WebDriver.

  • Export Test Case As option exports and converts only the currently opened Selenium IDE test case.

  • Export Test Suite As option exports and converts all the test cases associated with the currently opened IDE test suite.

  • Close the test case.

The Selenium IDE test cases can be exported into different programming languages format like Java, Ruby, and Python etc.

DE Edit Menu

Edit menu provides options like Undo, Redo, Cut, Copy, Paste, Delete, Select All, Insert New Command, Insert New Comment.

  • Insert New Command – Allows user to insert the new command/test step anywhere within the current test case.

  • Insert New Comment – Allows user to insert the new comment anywhere within the current test case to describe the subsequent test steps.

Actions Menu

Actions menu provides options like Record, Play entire test suite, Play current test case, Pause / Resume, Toggle Breakpoint, Set / Clear Start Point, Execute this command

  • Record – Record options fine tunes the Selenium IDE into the recording mode. Thus, any action made by the user on the Firefox browser would be recorded in IDE.

  • Play entire test suite – The option plays all the Selenium IDE test cases associated with the current test suite.

  • Play current test case – The option plays the current Selenium IDE test case that has been recorded/created by the user.

  • Pause / Resume – User can Pause/Resume the test case at any point of time while execution.

  • Toggle Breakpoint (B) – User can set one or multiple breakpoint(s) to forcefully break the execution at any particular test step during execution.

  • Set / Clear Start Point (S) – User can also set start point at any particular test step for execution. This would enable user to execute the test case from the given start point for the subsequent runs

  • . Execute this command (X)- User can execute any selected test step

Options Menu-

  • Options menu privileges the user to set and practice various settings provided by the Selenium IDE.

Default Timeout Value – This represents time in cases when the web element takes more/less than the specified time to load.

Extensions – These user extensions are simply the JavaScript files. They can set by mentioning their absolute path in the text boxes representing extensions in the Options dialog box.

Remember base URL – Checking this option enables the Selenium IDE to remember the URL every time we launch it.

Record assertTitle automatically – Checking this field inserts the assertTitle command automatically along with the target value for every visited web page.

Locator Builders- Locator builders allow us to prioritize the order of locator types that are generated while recording the user actions.

Formats- Formats option allows user to convert the Selenium IDE test case into desired format.

Installation of Firebug

  • Firebug is a Firefox add-on that we will use to inspect the HTML elements of the web application under test. It will provide us the name of the element that our Selenese command would act upon.

  • Lunch- https://addons.mozilla.org/en-US/firefox/addon/firebug/-

  • Click on "Add to firefox" Link

  • After installation Click on the firebug icon present in the extreme top-right corner of the Firefox window to lunch firebug (Or Press F12)

FirePath- It is an add-on for Firebug and this is used to capture the xpath and CSS of elements in the web application

Last updated