Panel | ||
---|---|---|
|
...
|
...
ΠΠΏΠΈΡΠ°Π½ΠΈΠ΅
ΠΠΎΠ½ΡΡΡΡΠΊΡΠΎΡ Π΄Π΅ΠΉΡΡΠ²ΠΈΠΉ - ΡΠ½ΠΈΠ²Π΅ΡΡΠ°Π»ΡΠ½ΡΠΉ ΠΈΠ½ΡΡΡΡΠΌΠ΅Π½Ρ Π΄Π»Ρ ΡΠ°Π±ΠΎΡΡ Ρ ΡΠ»Π΅ΠΌΠ΅Π½ΡΠ°ΠΌΠΈ ΡΡΡΠ°Π½ΠΈΡΡ, ΠΊΠΎΡΠΎΡΡΠΉ ΠΏΠΎΠ·Π²ΠΎΠ»ΡΠ΅Ρ ΠΏΠΎΠ΄ΠΎΠ±ΡΠ°ΡΡ ΠΎΠΏΡΠΈΠΌΠ°Π»ΡΠ½ΡΠ΅ ΠΏΡΠΈΠ·Π½Π°ΠΊΠΈ Π΄Π»Ρ Π΅Π³ΠΎ ΠΏΠΎΠΈΡΠΊΠ°.
Note |
---|
ΠΠ»Ρ ΠΈΡΠΏΠΎΠ»ΡΠ·ΠΎΠ²Π°Π½ΠΈΡ ΡΡΠΎΠΉ ΡΡΠ½ΠΊΡΠΈΠΈ Π²Π°ΠΌ Π½Π΅ΠΎΠ±Ρ ΠΎΠ΄ΠΈΠΌΠΎ ΡΠ°ΡΠΏΠΎΠ»Π°Π³Π°ΡΡ Π·Π½Π°Π½ΠΈΠ΅ΠΌ ΠΎΡΠ½ΠΎΠ² ΡΠ·ΡΠΊΠ° ΡΠ°Π·ΠΌΠ΅ΡΠΊΠΈ HTML. |
ΠΠ°ΠΊ Π²ΡΠ·Π²Π°ΡΡ?
Π‘ΡΡΠ΅ΡΡΠ²ΡΠ΅Ρ Π΄Π²Π° ΡΠΏΠΎΡΠΎΠ±Π° Π΄Π»Ρ Π²ΡΠ·ΠΎΠ²Π° ΠΊΠΎΠ½ΡΡΡΡΠΊΡΠΎΡΠ°:
Π½Π΅ΠΎΠ±Ρ ΠΎΠ΄ΠΈΠΌΠΎ ΠΊΠ»ΠΈΠΊΠ½ΡΡΡ ΠΏΡΠ°Π²ΠΎΠΉ ΠΊΠ»Π°Π²ΠΈΡΠ΅ΠΉ ΠΌΡΡΠΈ ΠΏΠΎ ΠΈΠ½ΡΠ΅ΡΠ΅ΡΡΡΡΠ΅ΠΌΡ ΠΠ°Ρ ΡΠ»Π΅ΠΌΠ΅Π½ΡΡ Π½Π° ΡΡΡΠ°Π½ΠΈΡΠ΅ ΠΈ Π²ΡΠ±ΡΠ°ΡΡ Π ΠΊΠΎΠ½ΡΡΡΡΠΊΡΠΎΡ Π΄Π΅ΠΉΡΡΠ²ΠΈΠΉ ΠΈΠ· ΠΊΠΎΠ½ΡΠ΅ΠΊΡΡΠ½ΠΎΠ³ΠΎ ΠΌΠ΅Π½Ρ.
2. ΠΡΠΎΡΠΎΠΉ ΡΠΏΠΎΡΠΎΠ± - ΠΈΠ· ΠΎΠΊΠ½Π° ΠΠ΅ΡΠ΅Π²ΠΎ ΡΠ»Π΅ΠΌΠ΅Π½ΡΠΎΠ². ΠΠ»ΠΈΠΊΠ°Π΅ΠΌ ΠΠΠ ΠΏΠΎ Π½ΡΠΆΠ½ΠΎΠΌ ΡΠ»Π΅ΠΌΠ΅Π½ΡΡ ΠΈ Π²ΡΠ±ΠΈΡΠ°Π΅ΠΌ Π ΠΊΠΎΠ½ΡΡΡΡΠΊΡΠΎΡ Π΄Π΅ΠΉΡΡΠ²ΠΈΠΉ.
Info |
---|
ΠΡΠΈ Π΄ΠΎΠ±Π°Π²Π»Π΅Π½ΠΈΠΈ ΡΠ»Π΅ΠΌΠ΅Π½ΡΠ° Π² ΠΠΎΠ½ΡΡΡΡΠΊΡΠΎΡ Π΄Π΅ΠΉΡΡΠ²ΠΈΠΉ Π΅Π³ΠΎ Π΄ΠΎΡΡΡΠΏΠ½ΡΠ΅ ΡΠ²ΠΎΠΉΡΡΠ²Π° ΠΈ ΠΈΡ Π°Π²ΡΠΎΠΌΠ°ΡΠΈΡΠ΅ΡΠΊΠΈ ΠΏΠΎΠΏΠ°Π΄Π°ΡΡ Π² ΠΎΠΊΠ½ΠΎ Π‘Π²ΠΎΠΉΡΡΠ²Π° ΡΠ»Π΅ΠΌΠ΅Π½ΡΠ°. |
ΠΠ°ΡΠ°ΠΌΠ΅ΡΡΡ ΠΏΠΎΠΈΡΠΊΠ°
ΠΠ»Π°ΡΡΠΈΡΠ΅ΡΠΊΠΈΠΉ ΠΏΠΎΠΈΡΠΊ
1. β Π΄ΠΎΠΊΡΠΌΠ΅Π½ΡΠ°
Π Π΅ΠΊΠΎΠΌΠ΅Π½Π΄ΡΠ΅ΡΡΡ ΡΡΠ°Π²ΠΈΡΡ Π·Π½Π°ΡΠ΅Π½ΠΈΠ΅ -1 (ΠΏΠΎΠΈΡΠΊ Π²ΠΎ Π²ΡΠ΅Ρ Π΄ΠΎΠΊΡΠΌΠ΅Π½ΡΠ°Ρ Π½Π° ΡΡΡΠ°Π½ΠΈΡΠ΅).Β
2. β ΡΠΎΡΠΌΡ
Π’ΠΎΠΆΠ΅ Π»ΡΡΡΠ΅ ΡΡΠ°Π²ΠΈΡΡ -1 (ΠΏΠΎΠΈΡΠΊ ΠΏΠΎ Π²ΡΠ΅ΠΌ ΡΠΎΡΠΌΠ°ΠΌ Π½Π° ΡΡΡΠ°Π½ΠΈΡΠ΅). ΠΡΠΈ Π²ΡΠ±ΠΎΡΠ΅ ΡΠ°ΠΊΠΎΠ³ΠΎ Π·Π½Π°ΡΠ΅Π½ΠΈΡ ΡΠ°Π±Π»ΠΎΠ½Β Π±ΡΠ΄Π΅Ρ Π±ΠΎΠ»Π΅Π΅ ΡΠ½ΠΈΠ²Π΅ΡΡΠ°Π»ΡΠ½ΡΠΌ.
ΠΡΠΈΠΌΠ΅Ρ: Π½Π° ΡΡΡΠ°Π½ΠΈΡΠ΅ 3 ΡΠΎΡΠΌΡ - ΠΏΠΎΠΈΡΠΊ, ΡΠ΅Π³ΠΈΡΡΡΠ°ΡΠΈΡ, Π·Π°ΠΊΠ°Π· ΡΠΎΠ²Π°ΡΠ°. ΠΠ°ΠΌ Π½Π°Π΄ΠΎ ΠΊΠ»ΠΈΠΊΠ½ΡΡΡ Π² ΡΠΎΡΠΌΠ΅ Π·Π°ΠΊΠ°Π·Π° ΠΏΠΎ ΠΊΠ½ΠΎΠΏΠΊΠ΅ ΠΈ ΠΌΡ Π²ΡΠ±ΡΠ°Π»ΠΈ Π² ΠΊΠ°ΡΠ΅ΡΡΠ²Π΅ Π·Π½Π°ΡΠ΅Π½ΠΈΡ ΠΏΠΎΠ»Ρ βΠ€ΠΎΡΠΌΠ°β - 2 (Π½ΡΠΌΠ΅ΡΠ°ΡΠΈΡ Ρ Π½ΡΠ»Ρ). Π‘ΠΏΡΡΡΡ ΠΊΠ°ΠΊΠΎΠ΅-ΡΠΎ Π²ΡΠ΅ΠΌΡ Π½Π° ΡΠ°ΠΉΡΠ΅ ΠΏΠΎΡΠ²Π»ΡΠ΅ΡΡΡ Π½ΠΎΠ²Π°Ρ ΡΠΎΡΠΌΠ°, Π΄Π»Ρ Π²Ρ ΠΎΠ΄Π°, ΠΈ Π²ΡΡΠ°Π²Π»Π΅Π½Π° ΠΎΠ½Π° ΠΏΠ΅ΡΠ΅Π΄ ΡΠΎΡΠΌΠΎΠΉ Π·Π°ΠΊΠ°Π·Π°. ΠΠΎΠ΄ Π½ΠΎΠΌΠ΅ΡΠΎΠΌ 2 ΡΠ΅ΠΏΠ΅ΡΡ Π±ΡΠ΄Π΅Ρ ΡΠΎΡΠΌΠ° Π²Ρ ΠΎΠ΄Π° ΠΈ Π½Π°Ρ ΡΠ°Π±Π»ΠΎΠ½ Π»ΠΈΠ±ΠΎ Π²ΡΠ΄Π°ΡΡ ΠΎΡΠΈΠ±ΠΊΡ ΠΎ ΡΠΎΠΌ, ΡΡΠΎ ΠΊΠ½ΠΎΠΏΠΊΠ° Π½Π΅ Π½Π°ΠΉΠ΄Π΅Π½Π°, Π»ΠΈΠ±ΠΎ (ΡΡΠΎ Π³ΠΎΡΠ°Π·Π΄ΠΎ Ρ ΡΠΆΠ΅) Π±ΡΠ΄Π΅Ρ ΠΊΠ»ΠΈΠΊΠ°ΡΡ Π² Π΄ΡΡΠ³ΠΎΠΉ ΡΠΎΡΠΌΠ΅ ΠΏΠΎ Π΄ΡΡΠ³ΠΎΠΉ ΠΊΠ½ΠΎΠΏΠΊΠ΅.
Info |
---|
Π Π½Π°ΡΡΡΠΎΠΉΠΊΠ°Ρ ΠΏΡΠΎΠ³ΡΠ°ΠΌΠΌΡ (ΠΠ°ΡΡΡΠΎΠΉΠΊΠΈ β ΠΠ°ΠΏΠΈΡΡ) ΠΌΠΎΠΆΠ½ΠΎ ΠΎΡΠΌΠ΅ΡΠΈΡΡ Π΄Π²Π° ΡΠ΅ΠΊΠ±ΠΎΠΊΡΠ° - βΠΡΠΊΠ°ΡΡ Π²ΠΎ Π²ΡΠ΅Ρ ΡΠΎΡΠΌΠ°Ρ Π½Π° ΡΡΡΠ°Π½ΠΈΡΠ΅β ΠΈ βΠΡΠΊΠ°ΡΡ Π²ΠΎ Π²ΡΠ΅Ρ Π΄ΠΎΠΊΡΠΌΠ΅Π½ΡΠ°Ρ Π½Π° ΡΡΡΠ°Π½ΠΈΡΠ΅βΒ ΠΈ ΡΠΎΠ³Π΄Π° Π²ΡΠ΅Π³Π΄Π° ΠΏΡΠΈ ΠΏΠΎΠΈΡΠΊΠ΅ ΡΠ»Π΅ΠΌΠ΅Π½ΡΠΎΠ² Π΄Π»Ρ Π½ΠΎΠΌΠ΅ΡΠ° Π΄ΠΎΠΊΡΠΌΠ΅Π½ΡΠ° ΠΈ ΡΠΎΡΠΌΡ Π±ΡΠ΄Π΅Ρ ΡΡΠΎΡΡΡ -1. |
3. Π’ΡΠ³
HTML ΡΡΠ³, ΠΊΠΎΡΠΎΡΡΠΉ Π½Π°Π΄ΠΎ Π½Π°ΠΉΡΠΈ.
4. ΠΠΌΡ Π°ΡΡΠΈΠ±ΡΡΠ°
ΠΡΡΠΈΠ±ΡΡ HTML ΡΡΠ³Π° ΠΏΠΎ ΠΊΠΎΡΠΎΡΠΎΠΌΡ ΠΏΡΠΎΠΈΠ·Π²ΠΎΠ΄ΠΈΡΡΡ ΠΏΠΎΠΈΡΠΊ.
5. ΠΠ½Π°ΡΠ΅Π½ΠΈΠ΅
ΠΠ½Π°ΡΠ΅Π½ΠΈΠ΅ Π°ΡΡΠΈΠ±ΡΡΠ°, Π²ΡΠ±ΡΠ°Π½Π½ΠΎΠ³ΠΎ HTML ΡΠ΅Π³Π°
6. Π’ΠΈΠΏ ΠΏΠΎΠΈΡΠΊΠ°
text - ΠΏΠΎΠΈΡΠΊ ΠΏΠΎ ΠΏΠΎΠ»Π½ΠΎΠΌΡ Π»ΠΈΠ±ΠΎ ΡΠ°ΡΡΠΈΡΠ½ΠΎΠΌΡ Π²Ρ ΠΎΠΆΠ΄Π΅Π½ΠΈΡ ΡΠ΅ΠΊΡΡΠ°;
notext - ΠΏΠΎΠΈΡΠΊ ΡΠ»Π΅ΠΌΠ΅Π½ΡΠΎΠ² Π² ΠΊΠΎΡΠΎΡΡΡ Π½Π΅ Π±ΡΠ΄Π΅Ρ ΡΠΊΠ°Π·Π°Π½Π½ΠΎΠ³ΠΎ ΡΠ΅ΠΊΡΡΠ°;
regexp - ΠΏΠΎΠΈΡΠΊ Ρ ΠΏΠΎΠΌΠΎΡΡΡ ΡΠ΅Π³ΡΠ»ΡΡΠ½ΡΡ Π²ΡΡΠ°ΠΆΠ΅Π½ΠΈΠΉ;
ΠΠ° ΡΠΊΡΠΈΠ½ΡΠΎΡΠ΅ Π²ΠΈΠ΄Π½ΠΎ, ΡΡΠΎ ΠΏΠΎΡΠ»Π΅ ΠΊΠ»ΠΈΠΊΠ° ΠΏΠΎ ΠΊΠ½ΠΎΠΏΠΊΠ΅ ΠΠΎΠΈΡΠΊ Π½Π°ΡΠ»ΠΎΡΡ ΡΡΠΈ ΡΠ»Π΅ΠΌΠ΅Π½ΡΠ°, ΡΡΠΎ Π½Π΅ ΠΎΡΠ΅Π½Ρ Ρ ΠΎΡΠΎΡΠΎ - Π²ΡΠ΅Π³Π΄Π° ΡΡΠ°ΡΠ°ΠΉΡΠ΅ΡΡ ΠΏΠΎΠ΄Π±ΠΈΡΠ°ΡΡ ΡΠ°ΠΊΠΈΠ΅ ΠΏΠ°ΡΠ°ΠΌΠ΅ΡΡΡ ΠΏΠΎΠΈΡΠΊΠ°, ΡΡΠΎΠ± Π² ΠΈΡΠΎΠ³Π΅ Π½Π°Ρ ΠΎΠ΄ΠΈΠ»ΡΡ ΡΠΎΠ»ΡΠΊΠΎ ΠΎΠ΄ΠΈΠ½ ΡΠ»Π΅ΠΌΠ΅Π½Ρ.
ΠΠΎΠΈΡΠΊ ΠΏΠΎ XPath
Π‘ ΠΏΠΎΠΌΠΎΡΡΡ XPath Π²ΡΡΠ°ΠΆΠ΅Π½ΠΈΠΉ ΠΡ ΠΌΠΎΠΆΠ΅ΡΠ΅ ΡΠ΅Π°Π»ΠΈΠ·ΠΎΠ²Π°ΡΡ Π±ΠΎΠ»Π΅Π΅ ΡΠ½ΠΈΠ²Π΅ΡΡΠ°Π»ΡΠ½ΡΠΉ ΠΈ ΡΡΡΠΎΠΉΡΠΈΠ²ΡΠΉ ΠΊ ΠΈΠ·ΠΌΠ΅Π½Π΅Π½ΠΈΡΠΌ Π²ΡΡΡΡΠΊΠΈ ΡΠ°ΠΉΡΠ° Π°Π»Π³ΠΎΡΠΈΡΠΌ ΠΏΠΎΠΈΡΠΊΠ° ΡΠ»Π΅ΠΌΠ΅Π½ΡΠΎΠ², Π² ΡΡΠ°Π²Π½Π΅Π½ΠΈΠΈ Ρ ΠΊΠ»Π°ΡΡΠΈΡΠ΅ΡΠΊΠΈΠΌ ΠΏΠΎΠΈΡΠΊΠΎΠΌ ΠΈΠ»ΠΈ ΡΠ΅Π³ΡΠ»ΡΡΠ½ΡΠΌΠΈ Π²ΡΡΠ°ΠΆΠ΅Π½ΠΈΡΠΌΠΈ.
β Π΄ΠΎΠΊΡΠΌΠ΅Π½ΡΠ° ΠΈ β ΡΠΎΡΠΌΡ ΠΎΡΠ²Π΅ΡΠ°ΡΡ Π·Π° ΡΠΎ ΠΆΠ΅, ΡΡΠΎ ΠΈ ΠΏΡΠΈ ΠΊΠ»Π°ΡΡΠΈΡΠ΅ΡΠΊΠΎΠΌ ΠΏΠΎΠΈΡΠΊΠ΅.
1. XPath
ΠΠΎΠ»Π΅ Π²Π²ΠΎΠ΄Π° XPath Π²ΡΡΠ°ΠΆΠ΅Π½ΠΈΡ.
2. ΠΠ°ΡΠΈΠ°Π½ΡΡ
ΠΠ΄Π΅ΡΡ ΠΌΠΎΠΆΠ½ΠΎ Π²ΡΠ±ΡΠ°ΡΡ ΠΎΠ΄Π½ΠΎ ΠΈΠ· ΠΏΡΠ΅Π΄Π»ΠΎΠΆΠ΅Π½Π½ΡΡ ΠΠΎΠ½ΡΡΡΡΠΊΡΠΎΡΠΎΠΌ Π²ΡΡΠ°ΠΆΠ΅Π½ΠΈΠΉ.
Info |
---|
ΠΡΠ»ΠΈ Π½ΠΈ ΠΎΠ΄ΠΈΠ½ ΠΈΠ· ΠΏΡΠ΅Π΄Π»ΠΎΠΆΠ΅Π½Π½ΡΡ Π²Π°ΡΠΈΠ°Π½ΡΠΎΠ² ΠΠ°Ρ Π½Π΅ ΡΡΡΡΠ°ΠΈΠ²Π°Π΅Ρ, ΡΠΎ ΠΡ ΠΌΠΎΠΆΠ΅ΡΠ΅ ΡΠΎΡΡΠ°Π²ΠΈΡΡ XPath Π²ΡΡΠ°ΠΆΠ΅Π½ΠΈΠ΅ ΡΠ°ΠΌΠΎΡΡΠΎΡΡΠ΅Π»ΡΠ½ΠΎ. |
ΠΡΠ±ΠΎΡ Π΄Π΅ΠΉΡΡΠ²ΠΈΡ
ΠΠΎΠΆΠ½ΠΎ Π²ΡΠ±ΡΠ°ΡΡ ΠΎΠ΄Π½ΠΎ ΠΈΠ· ΡΡΡΡ Π²ΠΎΠ·ΠΌΠΎΠΆΠ½ΡΡ Π΄Π΅ΠΉΡΡΠ²ΠΈΠΉ
Set - Π£ΡΡΠ°Π½ΠΎΠ²ΠΊΠ° Π·Π½Π°ΡΠ΅Π½ΠΈΡ
ΠΡΡΠΈΠ±ΡΡ - Π°ΡΡΠΈΠ±ΡΡ ΡΠ»Π΅ΠΌΠ΅Π½ΡΠ° Π΄Π»Ρ ΠΊΠΎΡΠΎΡΠΎΠ³ΠΎ Π½Π°Π΄ΠΎ ΡΡΡΠ°Π½ΠΎΠ²ΠΈΡΡ Π½ΠΎΠ²ΠΎΠ΅ Π·Π½Π°ΡΠ΅Π½ΠΈΠ΅
|
...
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: ΠΠΎΠ½ΡΡΡΡΠΊΡΠΎΡ Π΄Π΅ΠΉΡΡΠ²ΠΈΠΉ ΠΈ ΠΠΎΠΈΡΠΊ ΠΏΠΎ XPath
| ||
Please read the Terms of Use for Materials on ZennoLab |
Table of contents
Expand | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
|
Description
The action designer is a universal tool for working with page elements, which allows you to select the optimal signs for its search.
Note |
---|
To use this feature, you need to have a basic understanding of the HTML markup language. |
How to call?
There are two ways to call a designer:
you need to right-click on the element of interest on the page and select to the action designer from the context menu.
2. The second method is from the Element Tree window. Right-click on the desired element and select to the action designer.
When an element is added to the Action Builder, its available properties and their attributes are automatically transferred to the Element Properties window.
Search options
Classic search
1. Document β.
It is recommended to set the value -1 (search in all documents on the page).Β
2. Form β.
It is also better to set -1 (search in all forms on the page). Choosing this value will make the template more versatile.
Example: on page 3 of the form - search, registration, ordering goods. We need to click on the button in the order form and we have chosen as the value of the βFormβ field - 2 (numbering from zero). After some time, a new login form appears on the site, and it is inserted in front of the order form. Number 2 will now be the login form, and our template will either give an error that the button was not found, or (much worse) will click on another button in another form.
In the program settings (Settings β Recording), you can mark two checkboxes - βSearch all forms on pageβ and βSearch all documents on pageβ and then always when searching for elements for the document number and form will be -1.
3. Tag
HTML tag to find.
Example:
Code Block | ||
---|---|---|
| ||
<div class="visible" id="username"></div> |
div
- this is a tag.
4. Attribute name
The HTML tag attribute for the search.
Code Block | ||
---|---|---|
| ||
<div class="visible" id="username"></div> |
class
and id
- attributes.
5. Value
The value of the attribute of the selected HTML tag
Code Block | ||
---|---|---|
| ||
<div class="visible" id="username"></div> |
visible
and username
- attribute values.
6. Search type
text - search by full or partial text occurrence;
notext - search for elements that do not contain the specified text;
regexp - search using regular expressions
By default RegeXp search is case insensitive. To change it you can prepend(?-i)
to your expression (this mean βdisable case insensitive modeβ).
The screenshot shows that after clicking on the Search button, three elements were found, which is not very good - always try to select such search parameters so that in the end there is only one element.
XPath search
With the help of XPath expressions, you can implement a more universal and resistant to changes in site layout algorithm for finding elements, in comparison with classic search or regular expressions.
Document number and form number are responsible for the same as in the classic search.
1. XPath
XPath expression input field.
2. Options
Here you can select one of the suggested expression designer.
If none of the proposed options suits you, then you can compose the XPath expression yourself.
Action selection
You can choose one of three possible actions
Set - Setting a value
Attribute - an attribute of an element for which a new value must be set
Value is the text to be inserted. You can use both plain text and project variables
{-Variable.someVar-}
,{-Profile.Name-}
.
3. ΠΠΎΠ±Π°Π²Π»Π΅Π½ΠΈΠ΅ Π² ΠΏΡΠΎΠ΅ΠΊΡ
Π ΡΠΆΠ΅ Π² ΡΠ°ΠΌΠΎΠΌ ΠΊΠΎΠ½ΡΠ΅ ΠΊΠΎΠ³Π΄Π° ΠΏΠ°ΡΠ°ΠΌΠ΅ΡΡΡ ΠΏΠΎΠ΄ΠΎΠ±ΡΠ°Π½Ρ, ΡΠ»Π΅ΠΌΠ΅Π½Ρ Π½Π°ΠΉΠ΄Π΅Π½, Π²ΡΠ±ΡΠ°Π½ΠΎ ΠΈ ΠΏΡΠΎΡΠ΅ΡΡΠΈΡΠΎΠ²Π°Π½ΠΎ Π½Π΅ΠΎΠ±Ρ ΠΎΠ΄ΠΈΠΌΠΎΠ΅ Π΄Π΅ΠΉΡΡΠ²ΠΈΠ΅ ΠΌΠΎΠΆΠ½ΠΎ Π½Π°ΠΆΠΈΠΌΠ°ΡΡ ΠΠΎΠ±Π°Π²ΠΈΡΡ Π² ΠΏΡΠΎΠ΅ΠΊΡ.
ΠΠΎΠ»Π΅Π·Π½ΡΠ΅ ΡΡΡΠ»ΠΊΠΈ
Get - ΠΠΎΠ»ΡΡΠ΅Π½ΠΈΠ΅ Π·Π½Π°ΡΠ΅Π½ΠΈΡ
ΠΡΡΠΈΠ±ΡΡ - Π°ΡΡΠΈΠ±ΡΡ, Π·Π½Π°ΡΠ΅Π½ΠΈΠ΅ ΠΊΠΎΡΠΎΡΠΎΠ³ΠΎ Π½Π°Π΄ΠΎ ΠΏΠΎΠ»ΡΡΠΈΡΡ.
ΠΠ½Π°ΡΠ΅Π½ΠΈΠ΅ - Π·Π΄Π΅ΡΡ ΠΎΡΠΎΠ±ΡΠ°Π·ΠΈΡΡΡ Π·Π½Π°ΡΠ΅Π½ΠΈΠ΅ Π½Π°ΠΉΠ΄Π΅Π½Π½ΠΎΠ³ΠΎ Π°ΡΡΠΈΠ±ΡΡΠ°.
Rise - ΠΡΠΏΠΎΠ»Π½ΠΈΡΡ Π΄Π΅ΠΉΡΡΠ²ΠΈΠ΅
Π·Π΄Π΅ΡΡ ΠΌΠΎΠΆΠ½ΠΎ Π²ΡΠ±ΡΠ°ΡΡ Π½Π΅ΠΎΠ±Ρ ΠΎΠ΄ΠΈΠΌΠΎΠ΅ Π΄Π΅ΠΉΡΡΠ²ΠΈΠ΅, ΠΊΠΎΡΠΎΡΠΎΠ΅ Π½ΡΠΆΠ½ΠΎ ΡΠ΄Π΅Π»Π°ΡΡ Ρ Π½Π°ΠΉΠ΄Π΅Π½Π½ΡΠΌ ΡΠ»Π΅ΠΌΠ΅Π½ΡΠΎΠΌ.
ΠΠ»Ρ Π΄Π΅ΠΉΡΡΠ²ΠΈΠΉ drag ΠΈ drop Π΄ΠΎΡΡΡΠΏΠ½Ρ Π΄Π²Π° Π΄ΠΎΠΏΠΎΠ»Π½ΠΈΡΠ΅Π»ΡΠ½ΡΡ ΠΏΠΎΠ»Ρ, Π΄Π»Ρ ΠΊΠΎΠΎΡΠ΄ΠΈΠ½Π°Ρ
ΠΠ°Π²Π΅ΡΡΠ°ΡΡΠΈΠ΅ Π΄Π΅ΠΉΡΡΠ²ΠΈΡ
1. Π’Π΅ΡΡΠΈΡΠΎΠ²Π°Π½ΠΈΠ΅
ΠΠΎΡΠ»Π΅ ΡΠΎΠ³ΠΎ ΠΊΠ°ΠΊ ΠΏΠΎΠ΄ΠΎΠ±ΡΠ°Π»ΠΈ Π½Π΅ΠΎΠ±Ρ ΠΎΠ΄ΠΈΠΌΡΠ΅ ΠΏΠ°ΡΠ°ΠΌΠ΅ΡΡΡ ΠΏΠΎΠΈΡΠΊΠ° ΠΈ ΠΎΠΏΡΠ΅Π΄Π΅Π»ΠΈΠ»ΠΈΡΡ Ρ Π½ΡΠΆΠ½ΡΠΌ Π΄Π΅ΠΉΡΡΠ²ΠΈΠ΅ΠΌ Π½Π΅ ΠΏΠΎΠΌΠ΅ΡΠ°Π΅Ρ ΠΏΡΠΎΡΠ΅ΡΡΠΈΡΠΎΠ²Π°ΡΡ ΠΏΠΎΠ΄ΠΎΠ±ΡΠ°Π½Π½ΡΠ΅ ΠΏΠ°ΡΠ°ΠΌΠ΅ΡΡΡ Π½Π°ΠΆΠ°Π² ΡΠΎΠΎΡΠ²Π΅ΡΡΡΠ²ΡΡΡΡΡ ΠΊΠ½ΠΎΠΏΠΊΡ.
2. ΠΠΎΠΌΠΌΠ΅Π½ΡΠ°ΡΠΈΠΉ
ΠΠ΅ ΠΏΠ»ΠΎΡ ΠΎΠΉ ΠΈΠ΄Π΅Π΅ΠΉ Π±ΡΠ΄Π΅Ρ ΠΎΡΡΠ°Π²ΠΈΡΡ ΠΊΠΎΠΌΠΌΠ΅Π½ΡΠ°ΡΠΈΠΉ Π΄Π»Ρ ΡΠΊΡΠ΅Π½Π° Ρ.ΠΊ. Π°Π²ΡΠΎΠΌΠ°ΡΠΈΡΠ΅ΡΠΊΠΈΠ΅ ΠΊΠΎΠΌΠΌΠ΅Π½ΡΠ°ΡΠΈΠΈ Π½Π΅ΡΡΡ ΠΌΠ°Π»ΠΎ ΠΈΠ½ΡΠΎΡΠΌΠ°ΡΠΈΠΈ
ΠΠΎΠΌΠΌΠ΅Π½ΡΠ°ΡΠΈΠΈ
ΠΏΠΎ ΡΠΌΠΎΠ»ΡΠ°Π½ΠΈΡ
Π’Π΅ ΠΆΠ΅ ΡΠΊΡΠ΅Π½Ρ, ΡΠΎΠ»ΡΠΊΠΎ
Ρ ΠΏΠΎΠ»ΡΠ·ΠΎΠ²Π°ΡΠ΅Π»ΡΡΠΊΠΈΠΌΠΈ ΠΊΠΎΠΌΠΌΠ΅Π½ΡΠ°ΡΠΈΡΠΌΠΈ
Attribute - the attribute whose value you want to get.
Value - the value of the found attribute will be displayed here.
Rise - Rise event
here you can select the required action to be done with the found element.
Two additional fields are available for drag and drop actions, for coordinates
Final actions
1. Test
After you have selected the necessary search parameters and decided on the desired action, it does not hurt to test the selected parameters by clicking the appropriate button.
2. Comment
It's not a bad idea to leave a comment for the action as automatic comments carry little information
Comments
default
The same actions, only
with custom comments
3. Adding to the project
And already at the very end, when the parameters are selected, the element is found, the required action is selected and tested, you can click Add to project.
Useful links
ZennoPoster + xPath using Yandex.Market as an example (contest article from the forum)