Panel | ||||||
---|---|---|---|---|---|---|
| ||||||
Please read the Terms of Use for Materials on ZennoLab |
Table of contents
Expand | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
|
...
Description
This action serves, as it is not difficult to guess, to check whether there is a certain text on the page or not.
This is not a single action, but a group of actions:
Info |
---|
This is a deprecated feature. Starting with ZennoPoster 7.3.1.0, a new action is used - Check for the presence existence of text |
...
How to add an action to a project?
...
In the ProjectMaker browser, select the text for which you want to create a check.
Click on the selected text right click and select the item Create a check for the existance of the selected text
A dialog box will appear to check if the selection is correct. If everything is correct, then click OK. The text in this window can be edited.
Two actions will be automatically created - Text checking and a logical if check .
If the desired text is found on the page, the if cube will succeed (exit on the green line), otherwise - with an error (red line).
...
Problem: the site does not always load correctly (especially if you use not very high-quality proxies proxy ) - the page may not load (it will be empty, white), or an HTTP error may appear (404, 403, 503, etc.).
Possible solution: find static text on the page (which never changes) and after going to the site look for this text on the page. If the text is not found, then the page has not loaded. In this case, using a loop and a transition cube go to page, we try to reload the page several times, each time trying to find the desired text.
...