"Selenium-webdriver self-study" selenium-ide Verification Point (v)

Source: Internet
Author: User

==========================================================================================================

Write in front:

Playback is also performed correctly with the script recorded by the Selenium IDE. So how do we ensure that the results of the tests are consistent with the results we expect?

Validation points can be set through the tool.

==========================================================================================================

5. Selenium IDE Verification Point

The test case needs to check the properties of a Web page. This requires maintenance and validation commands. There are two ways to verify the point to any script. Insert any verification point in the record mode click the right key element and select Show all Available Commands as shown in.

You can also insert a command by performing a "right-click" and then selecting "Insert New command".

After inserting the new command, click the "command" drop-down list and select the list of commands as shown to provide the appropriate verification point

Here are the commands that are primarily used for validation, which helps us to check whether a particular step has passed or failed.

Verifyelementpresentassertelementpresentverifyelementnotpresentassertelementnotpresentverifytextasserttextverifyattribute Assertattributeverifycheckedassertcheckedverifyalertassertalertverifytitleasserttitle

Sync Point

When the program executes, the application may be responsive by the load on the server, so it must be synchronized with the app and the script.

Here are a few commands that we can use to ensure that scripts and applications are synchronized.

Waitforalertnotpresent    waitforalertpresent    waitforelementpresent    waitforelementnotpresent    Waitfortextpresent    waitfortextnotpresent    waitforpagetoload    waitforframetoload

==========================================================================================================

Learning Summary:

1. This part of the content, I simply use the Asserttext to verify. You can compare the run results to the expected results, and if not, you will be prompted for Failuers.

At the same time, this part of the verification in use, will continue to refer to the article.

Next, learn more about the advanced use of the Selenium IDE.

==========================================================================================================

Selenium-webdriver Self-study selenium-ide verification Point (v)

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.