"Selenium2 Python Automation Test" (--selenium) Tools Introduction

Source: Internet
Author: User

(i) Selenium IDE

Firefox is a plugin that helps us understand the testing framework. Search for downloads in the add-ons, the results of the general search in the first few are not, to point that more to see, find this:

After installation, the browser toolbar will have:

After installing, click on this tab to start:

1: Control case Run speed

2: Pause and resume use case execution

3: Single Step: You can run one row of commands in a use case.

First enter the URL to be recorded in the Address bar, and then enter the appropriate URL in the browser, for example, we take Baidu as an example:

First step: Fill in the URL

Step two: Firefox browser into Baidu

Step Three:

Click the red dot on the right side of the Selenium IDE, then go to the page to click the Search box, enter selenium, and click Search. Then click on the Selenium IDE's red Dot to end the recording, and you can see that the Selenium IDE has a record:

If you want to clear the re-recording, you can right-click there and select Clear all.

Fourth Step:

By following the steps, you can see the selenium IDE gives you the auto-generated unittest use case. It looks very big on the writing, but ... Running a class is hard to succeed, but we can refer to the structure it writes, which is the standard structure that we will write about later.

Interested friends can look into this tool.

(ii) Selenium Builder

It is also a plugin for Firefox:

Starting mode

After the right mouse button is installed

Click to open:

Use

Like the Selenium IDE, the browser is on the page you want to manipulate and should be the URL of the current page when you open it. Then click on the record and you will notice that the browser tag will change:

Before clicking on the record:

After clicking on the record:

Then perform the operation on the current page, and in Selenium builder there will be all of your clicked positions:

This tool is very convenient for locating, and can be used to copy all kinds of positioning methods directly when writing.

Public search " Automated test practice" or scan the QR code below to add attention ~ ~ ~

"Selenium2 Python Automation Test" (--selenium) Tools Introduction

Related Article

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.