Selenium – IDE Script Debugging

Debugging is the process of finding and fixing errors in the test script. It is a common step in any script development. To make the process more robust, we can make use a plugin “Power Debugger” for Selenium IDE.

Step 1. To install Power Debugger add-ons, open Firefox browser, launch and search for Power Debugger. Click on link .

Step 2. Add-ons page appears. Click on Add to Firefox button.

Step 3. Open ‘Selenium IDE’ and you will notice a new icon, “Pause on Fail” on recording toolbar as shown below. Click it to turn it ON. Upon clicking again, it would be turned “OFF”. (Users can turn “pause on fail” on or off any time even when the test is running.)

Step 4.  We can also use breakpoints to understand the error during the execution. To insert a breakpoint on a particular step, “Right Click” and select “Toggle Breakpoint” from the context-sensitive menu.

Step 5. After inserting the breakpoint, the particular step is displayed with a pause icon as shown below.

Step 6. When we execute the script, the script execution is paused where the breakpoint is inserted. This will help the user to evaluate the value/presence of an element when the execution is in progress.


Leave a Reply Cancel reply