Info | ||||
---|---|---|---|---|
| ||||
We want to provide you with the latest help content in your language as soon as possible. This page has been translated automatically and may contain grammatical errors or inaccuracies. We want this content to be useful to you. Please let us know at the bottom of this page if this information was helpful. View the original article in Russian: Создать проверку наличия выделенного текста |
Описание
...
Description
This action serves, as it is not difficult to guess, to check whether there is a certain text on the page or not.
...
Info |
---|
...
This is a deprecated feature. Starting with ZennoPoster 7.3.1.0, a new action is used - Check for the presence 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 RMB right click and select the item Create check for the presence of 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 - Take the text of the tab 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 ) - 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 on the page, we try to reload the page several times, each time trying to find the desired text.
...
...
Useful links
Regular Expression Tester
Condition IF (condition "If ... then ..." (Statement "IF")Retrieve data from a web page )
Data (tab operations)