In the previous chapter of Test Case Pane, we had a look over different options available in Selenium IDE Test Case Pane like Creat, Add, Import, Delete etc. In this tutorial we will laern about Test Step Pane and the different operations available in the same.
Test Step Pane is the place where it displays all the Test Steps or all the Commands of the Selected Test Case. All the different operations like Add Commands, Edit Commands, Add Comments, Cut, Copy, Paste & Move are done in this pane. That is why it is also called as Editor Pane. It is available in two views: Table and Source.
The Table View
Most of the time, you will work on Selenium IDE using the Table View. It is further divided in to two different sections:
- Test Steps Section
- Command Section
Test Steps Section
This shows all the commands of the selected Test Case.
All the different operations on Test Steps can be done from here as well like:
- Cut/Copy/Paste/Delete
- Insert Command & Comments
- Toggle Break Points
- Set / Clear Start Point
- Execute this Command
Command Section
This allows to alter the Command, Target or Value of the Test Step. These are entry fields where you can modify the currently selected command.
Command: This list down all the available Selenium IDE commands, which can be used in the Test Step.
Target: This list down all the available locators which can be used to identify selected element for the command.
Find: Using this button, elements can be identified on the web page
Value: Allows to set a value to use for the command. Example a text to enter for the type command.
The Source View
Source displays the test case in the native format in which the file will be stored. By default, this is HTML although it can be changed to a programming language such as Java or C#, or a scripting language like Python. It also allows to edit the script just like in the Table View but in this case knowledge of scripting is necessary to have.
How to Create a Test Step in Selenium IDE?
- To create steps, type the name of the command in the “Command” text box.
- It displays a dropdown list of commands that match with the entry that you are currently typing.
- Target is any parameter (like username, password) for a command and Value is the input value (like tom, 123pass) for those Targets.