Selenium IDE - Selenium

Selenium IDE has been installed, so let's take some time to familiarize ourselves with Selenium IDE. This will give us the foundation that we can use in later chapters.

Open up Selenium IDE by going through the tools menu in Mozilla Firefox. The steps are Tools | Selenium IDE. A window will appear. If the menu bar is not available, which is now the default in Firefox, you can launch Selenium IDE via Firefox | Web Developer | Selenium IDE.

Developer | Selenium IDE.

Starting from the top, I will explain what each of the items are:

  • Base URL: This is the URL that the test will start at. All open commands will be relative to the Base URL unless a full path is inserted in the open command.

  • Speed Slider: This is the slider under the Fast and Slow labels on the screen.

  • Selenium-IDE-Screen-ShortRun all the tests in the IDE.

  • Selenium-IDE-Screen-Short Run a single test in the IDE.

  • Selenium-IDE-Screen-Short Pause a test that is currently running.

  • Selenium-IDE-Screen-Shot Step through the test once it has paused.

  • Selenium-IDE-Screen-ShotThis is the record button. This will be engaged when the test is recording.

  • The Command select box has a list of all the commands that are needed to create a test. You can type into it to use the auto complete functionality or use it as a drop down.

  • The Target text box allows you to input the location of the element that you want to work against.

  • The Find button, once the target box is populated, can be clicked to highlight the element on the page.

  • The Value text box is where you place the value that needs to change. For example, if you want your test to type in an input box on the web page, you would put what you want it to type in the value box.

  • The Test table will keep track of all your commands, targets, and values. It has been structured this way because the original version of Selenium was styled on FIT tests. FIT was created by Ward Cunningham and means Framework for Integrated Testing. The tests were originally designed to be run from HTML files and the IDE keeps this idea for its tests.

  • If you click the Source tab you will be able to see the HTML that will store the test. Each of the rows will look like:

  • The area below the Value text box will show the Selenium log while the tests are running. If an item fails, then it will have an [error] entry.
    This area will also show help on Selenium Commands when you are working in the Command select box. This can be extremely useful when typing commands into Selenium IDE instead of using the record feature.

  • The Log tab will show a log of what is happening during the test. The Reference tab gives you documentation on the command that you have highlighted.

All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd Protection Status

Selenium Topics