LR image checkpoint
Web_p_w_picpath_check, image checkpoint, functions like web_reg_find (text checkpoint) to verify whether the specified image exists in the HTML page.
Application scenario: determine whether a logo exists on the open page of the test object, such as the company logo. If the logo exists, the test passes, and if the logo does not exist, the test fails.
Note:
1. Check runtime settings > internet protocl > preferences > check:enable imaage and text check
two。 Check tools > general options > correlation > enable scripting and java applets on snapshot
3. This function needs to be placed after web_url, and the mode of web_url must be html (this function only supports HTML-based scripts)
1. Press F4 to enter runtime settings, select "preferences" and check "enable p_w_picpath and text check"
1. Click "tools > general options"
1. Check
1. Right-click "Source File"
1. Go to Tree View
Select "p_w_picpath check" and click "OK"
The value of alt,src directly takes the corresponding value of the picture in the source code of the web page, and click "OK"
Automatically insert the image checkpoint function, click "Save"
19. Play back the script