# Introduction to Selenuim IDE,FireBug,Firepath

* &#x20;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.&#x20;
* &#x20;Being a Firefox plug-in, Selenium IDE supports only Firefox, thus the created test scripts could be executed only on Firefox
* &#x20;Created test scripts can be export to Remote Control or WebDriver scripts formats.

#### &#x20;Installation of Selenium IDE

* &#x20; Lunch https://addons.mozilla.org/en-US/firefox/addon/selenium-ide/&#x20;
* &#x20;Click on "Add to firefox" Link
* &#x20; After the installation we can see selenium IDE indexed under menu bar -> Web Developer -> Selenium IDE.

&#x20;**IDE File Menu bar**- It allows user to:

* &#x20; Create new test case, open existing test case, save the current test case.
* &#x20; Export Test Case As and Export Test Suite As in any of the associated programming language compatible with Selenium RC and WebDriver.
* &#x20; Export Test Case As option exports and converts only the currently opened Selenium IDE test case.
* &#x20; Export Test Suite As option exports and converts all the test cases associated with the currently opened IDE test suite.
* &#x20;Close the test case.

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

#### &#x20;DE Edit Menu

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

* &#x20;Insert New Command – Allows user to insert the new command/test step anywhere within the current test case.
* &#x20; Insert New Comment – Allows user to insert the new comment anywhere within the current test case to describe the subsequent test steps.

#### &#x20;Actions Menu

&#x20;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

* &#x20; 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.
* &#x20;Play entire test suite – The option plays all the Selenium IDE test cases associated with the current test suite.&#x20;
* &#x20;Play current test case – The option plays the current Selenium IDE test case that has been recorded/created by the user.
* &#x20; Pause / Resume – User can Pause/Resume the test case at any point of time while execution.
* &#x20; Toggle Breakpoint (B) – User can set one or multiple breakpoint(s) to forcefully break the execution at any particular test step during execution.&#x20;
* &#x20;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

#### &#x20;Options Menu-

* &#x20;Options menu privileges the user to set and practice various settings provided by the Selenium IDE.

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

&#x20;**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.

&#x20;**Remember base URL** – Checking this option enables the Selenium IDE to remember the URL every time we launch it.&#x20;

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

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

&#x20;**Formats-** Formats option allows user to convert the Selenium IDE test case into desired format.&#x20;

#### Installation of Firebug

* &#x20; 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.
* &#x20; Lunch- https://addons.mozilla.org/en-US/firefox/addon/firebug/-&#x20;
* &#x20;Click on "Add to firefox" Link&#x20;
* &#x20;After installation Click on the firebug icon present in the extreme top-right corner of the Firefox window to lunch firebug (Or Press F12)

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