==========================================================================================================
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)