Selenium use of the IDE

Source: Internet
Author: User

Selenium IDE is a Firefox plugin, it is an important tool for the selenium family, we look at the definition of the official website:
Website

Selenium IDE is a integrated development environment for Selenium scripts. It is implemented as a Firefox extension, and allows your to record, edit, and debug tests. Selenium IDE includes the entire Selenium Core, allowing you to easily and quickly record and play back Tests in the Actua L environment that they would run in.

Selenium IDE is isn't only a recording tool:it are a complete IDE. You can choose the use of its recording capability, or your may edit your scripts by hand. With AutoComplete support and the ability to move commands around quickly, Selenium IDE are the ideal environment for creat ing Selenium tests no matter what style of tests you prefer.

Simply said is a selenium script of the integrated development environment, he is an FF plug-in, allowing you to record, edit, debug use cases. It's not just a recording tool, he's a complete IDE that you can use to create use cases.

His features: Convenient recording, playback features intelligent element selection set breakpoints, debug can save script in various languages script automatically assert each page's title support extended user-defined JS execution case there is a plugin ecosystem that can be extended

Simply see how to use: install

This will not have to say more, to the FF plug-in market download just fine. Be careful not to become a plugin for the Selenium IDE.
After loading, the following is shown:
Interface Introduction (1) Open the browser and open the plugin.

The interface is as follows:

A brief introduction to the interface:

1. Side bar
The sidebar, the "Test Case" box, is a suite that identifies a set of test cases that can be created by right-clicking.

2, toolbar
That is, there is a toolbar of the word fast slow.
Fast-slow, is a control playback speed of the east.

3, triangle + three rectangles
Play back the entire suite

4. Triangle + a rectangle
Replay the selected test case

5. Trailing pause and arrows
Mainly used in breakpoints is used, if you want to add a breakpoint, you can select the steps to press B, or right-click action

6. Clocks
Control the way you run, you can choose fixed time to run and so on.

7. Red Circle
Start recording or pause recording

8. Table
The action you record, where command represents a command, can be an action such as a click, or an assertion, such as a asserttrue, target, or object, is an element; Value, if an assertion is set, that is, a comparison.

9. Log
Logs that are running

10, reference
Means of command

11. Source
Generated HTML files, which are generated by default in HTML scripts. When we introduce scripts, we have to use HTML as well. This may be useful for converting to other formats such as Java and more.

There are also small operations, such as the ability to set where to start running TestCase (shortcut s), execute a single (X), set the way for continuous integration, and so on.

The main point of the interface is to use this, and then you can record it.

Note that opening the plugin is the default recording, and if you don't want to record it, click the red circle. Export File

You can format the file before exporting it.

Settings are set in Options->options and can be set such as: Webdriver type, package name, indent, and so on.

You can then export it in file->save as when you are finished recording. There are several ways to choose from.

After generating the file, you can get your own project to run, of course, to install some environment.

That's the basic usage.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.