# Get Auto.ru

Let's consider an example of a robot that checks the ranking of cars on the Auto.ru website. The input data is an Excel file. During the check, the price is saved, and the salon in the search query remains until the salon specified in the variable OurSalon is found.

The robot project consists of two diagrams and one file in xlsx format.

The main diagram of the project looks like this (for convenience, the blocks of the diagram are numbered):

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXdzSeHbk8MjnyxinEgJNR45Hc9erlWibrtIgoF9H2o22JGBhBTVXfr655YQyHS3DvzI-EcG7aBFTq_5NpnFbNK-O7jZVyl-RPnf_MKt-_qzsB9K_pfWpffd5bIYY5narlseSOsp?key=EEm2CmjYFTZ-lKSyfuFNo1ar" alt=""><figcaption></figcaption></figure>

1. **Block "Start"** (any diagram starts from this block).
2. **Block "Launch Chrome"** allows you to launch Google Chrome. The following properties are specified for this block:

* URL (the address of the page to be opened upon launch);
* Timeout (the time to wait for the application to start and the tab to load in seconds).

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXcPtjxHVcjna4-tR9Bge0rg4AAYg-Huwq0Q8WRODxzIwb04ft0dnVvusL4x1ZoIJbRFCCqS7XJ6Ml40EbbwIfRR--TOmzHtsLeKiTzft-tCtl_Rqs5K7GaUQz_Uk_wxXLhAhsHOHQ?key=EEm2CmjYFTZ-lKSyfuFNo1ar" alt=""><figcaption></figcaption></figure>

3. **Block "Create Document"** allows you to create an Excel document. For this block, one property is specified: "Sheet Name" (the name of the sheet where further actions will take place).

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXeoWtyU6LlGkEksb5YsyDLqoNXDZtEmfB4jzmqwt76kjfix7iErQHNn7URfcYhi4asJWX8l1qbDKsCqWzTUlKZjaA5i-aQXYj-2E4SVzvUevlmMlagdHXK1BBOXcEGgnC1AIQdVvQ?key=EEm2CmjYFTZ-lKSyfuFNo1ar" alt=""><figcaption></figcaption></figure>

4. **Block "Add Sheet"** allows you to add a sheet to the Excel document. The following properties are specified for this block:

* Document Link (a link to the document currently being worked on. The variable name in this property must match the variable name in the "Document Link" property of the "Create Document" or "Open Document" blocks from the Excel group that were previously used to create or open this document);
* Sheet Name (the name of the sheet that needs to be added to the Excel document).

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXcrZQRetJNYPMmQ5anPykVmSuZ5EjM6CYCPC1f47Pxay-FvN5-JPkfwFci4lasn2WW58vA9691R2LHxt9n9s0IvcZmEz82gxv-nDRB71ekGHRRcM87yoo9UnBhqQzfR1--0EHTD?key=EEm2CmjYFTZ-lKSyfuFNo1ar" alt=""><figcaption></figcaption></figure>

5. **Block "Open Document"** allows you to open an Excel document. For this block, the property "File Path" is specified (the path to the Excel document that needs to be opened).

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXeM6bgJ8wWaFIW7GQOWGyNeDMpj3sAPdGGTfOXCAYlJX1mn0CvNCB8OGiP9eMdn462-ZEVmgqMBx2wyFpGePXMLmKCMlVZIQ7htVUiIlXHAu6JU93ykUJlO96H4n8T-K7owISlpBw?key=EEm2CmjYFTZ-lKSyfuFNo1ar" alt=""><figcaption></figcaption></figure>

6. **Block "Get Cell Value"** allows you to read a value from a cell in the Excel document. The following properties are specified for this block:

* Document Link (a link to the document currently being worked on. The variable name in this property must match the variable name in the "Document Link" property of the "Create Document" or "Open Document" blocks from the Excel group that were previously used to create or open this document);
* Sheet (the ordinal number of the sheet where the required cell is located. Numbering starts from 1);
* Row (the row number where the required cell is located. Numbering starts from 1);
* Column (the column number where the required cell is located. Numbering starts from 1).

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXdjHygyVRw_ngihCCLM3PLaCG9wggulxx7Clayui5Jp7T61IvOennGuA6_sP_201sdPlJq_NYjJ_orfZpcL--EUisOkZjHR6PaFk_4lV7brNTr8z0wIS3FRuljO8gSSSM2V8pLJ2Q?key=EEm2CmjYFTZ-lKSyfuFNo1ar" alt=""><figcaption></figcaption></figure>

7. **Block "Condition"** checks the specified condition for truth, after which the scenario execution continues towards the "Yes" exit (if the condition is met) or towards the "No" exit (if the condition is not met).

The condition is written in the format: "variable" equals (==)/ greater than (>)/ less than (<) "value".

For example: $a == "Hello", that is, if the value of the variable $a is equal to "Hello", then the exit is "Yes", otherwise – the exit is "No".

$Result > 5, that is, if the value of the variable $Result is less than 5, then the exit is "Yes", otherwise – the exit is "No".

In this case, the condition is set as: $SearchAuto == "". That is, if the value is empty, then the exit is "Yes".

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXdoBa4zdMX2jaa5dCCoCUDWxO-na4wLaVkxL-Xr0Zh8YRQhtUuAp4wK7tiFuyn2xC1RpyNT9e4D7NjgBmRKfLTg41OIlPrrgiNvgbC2Y7j9afQYik2kofMx2EZOtHK53jgLL4dTtQ?key=EEm2CmjYFTZ-lKSyfuFNo1ar" alt=""><figcaption></figcaption></figure>

8. **Block "Save Document"** allows you to save the Excel document. The following properties are specified for this block:

* Excel Link (a link to the process of handling the Word document, the variable name in this property must match the variable name in the "Excel Link" property of the "Create Document" or "Open Document" blocks from the Excel group that were previously used to create or open this document);
* Document Link (a link to the document that needs to be saved. The variable name in this property must match the variable name in the "Document Link" property of the "Create Document" or "Open Document" blocks from the Excel group that were previously used to create or open this document);
* File Path (the path to the Excel document).

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXeuqmWwwVj98VMCiOIP1TeFwnMQNlEJHiSTRutPLCJVkyZDMzSwyRDabdGKn61WQ4c5QApuGBwOIBZ8-6Q6MuDtAu3pk7bJVeTfMHGk-Fxn0siytmkeTMZDsJh2LFT7CSVbHx2DJw?key=EEm2CmjYFTZ-lKSyfuFNo1ar" alt=""><figcaption></figcaption></figure>

9. **Block "Close Document"** allows you to close the Excel document. The following properties are specified for this block:

* Excel Link (a link to the process of handling the Excel document. The variable name in this property must match the variable name in the "Excel Link" property of the "Create Document" or "Open Document" blocks from the Excel group that were previously used to create or open this document);
* Document Link (a link to the document that needs to be closed. The variable name in this property must match the variable name in the "Document Link" property of the "Create Document" or "Open Document" blocks from the Excel group that were previously used to create or open this document).

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXeuupNtJwDTC2lPPLsrHr7UqI-JsLO2aXF4KYHDOBpGfh4sAg_RnMvZFqwNY8QEvyeGVhy5GrcLDDiFW0chI_SX8id1LvgR5fUAL7MYUFSf7nrGwYDdSxzuHpTTklnp1ONuH6v-?key=EEm2CmjYFTZ-lKSyfuFNo1ar" alt=""><figcaption></figcaption></figure>

10. **Block "Close Document"** allows you to close the Excel document. The following properties are specified for this block:

* Excel Link (a link to the process of handling the Excel document. The variable name in this property must match the variable name in the "Excel Link" property of the "Create Document" or "Open Document" blocks from the Excel group that were previously used to create or open this document);
* Document Link (a link to the document that needs to be closed. The variable name in this property must match the variable name in the "Document Link" property of the "Create Document" or "Open Document" blocks from the Excel group that were previously used to create or open this document).

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXeuupNtJwDTC2lPPLsrHr7UqI-JsLO2aXF4KYHDOBpGfh4sAg_RnMvZFqwNY8QEvyeGVhy5GrcLDDiFW0chI_SX8id1LvgR5fUAL7MYUFSf7nrGwYDdSxzuHpTTklnp1ONuH6v-?key=EEm2CmjYFTZ-lKSyfuFNo1ar" alt=""><figcaption></figcaption></figure>

11. **Block "Clear Selectors Cache"** allows you to clear the internal cache of selectors. When using selectors to speed up the search for elements on the page, an internal cache is used. Information about the element is stored in the cache after it is successfully identified, and later when searching for the element, the cache is checked first. If the cache contains information for this selector, it is retrieved from there, which significantly speeds up the robot's work. However, in some cases, this cache can negatively affect the scenario's performance. This is often observed when processing cyclically any similar elements on one page, for example, search results. In such cases, we recommend clearing the cache at the start of each iteration of processing similar elements on the page.

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXfFLrjoX51sHqgw14XOEYbHOSeKY2N9re83PHAjauMmZqJTqOL_RW3lnmCFpKVVI4iM5FcupFDwB0N_kW0KWSjU_RqEn0BkalFsfMf5roAuxZuh0jzSI0T3MQgpii6oDT5kHrhIUw?key=EEm2CmjYFTZ-lKSyfuFNo1ar" alt=""><figcaption></figcaption></figure>

12. **Block "Log"** allows you to output arbitrary messages and/or variable values to the log during the robot's scenario execution. For this block, the property "Value" is specified. The text constant is indicated in quotes, and the variable name starts with the symbol $. That is, this block logs a message about what was read from the Excel file during each iteration.

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXe233GudGD7amka5Lv2G4mYuzcHPnHhXhUVbcgHXGxqAzs4JJPki_yBB-FXyW75sFhKGbIKS5PmZRxePmJtsExtIKxPio1l6i6RzytcVE1nw3Eqi0f0jTY6obBVDzlBNIZpeivXmQ?key=EEm2CmjYFTZ-lKSyfuFNo1ar" alt=""><figcaption></figcaption></figure>

13. **Block "Process"** allows you to create scenarios consisting of multiple diagrams. The execution of the scenario will continue from the "Start" block of the specified project diagram. The execution of the scenario will return to the current block and continue in the current diagram as soon as the "End" block in the external diagram is reached. For the "Process" block, the property "Diagram Name" is specified (the name of the diagram file where the scenario execution will continue).

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXdYmik_jkqrExCM7QdYkcKK8uAHPkvghgVAOefjMQL6WLUc5uqfMF6Fj7RYUxgt0-o-0zHb2QYB-C3aELbeTi8jhLTvvzmChcqbttx1UZn-HJcNO3L3LhyTaNjv_QQ8CTOB71yd2g?key=EEm2CmjYFTZ-lKSyfuFNo1ar" alt=""><figcaption></figcaption></figure>

14. **Block "Assign Value to Variable"** sets new values for one or more variables. In this case, two values are specified in the properties that need to be assigned to two variables, respectively.

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXcm_8Dop51nHeozhhE2fz-u7se3n9-BqrVkhztGIMpdHKe_OLow830tvBnv6w3QsiXn_ihOmyn3xW3ys5s3z9wP9WE0qSW7LYK7Xj0fwHUVGQSnvcINf3Y_KdTxbZB64KvO1tS_Zw?key=EEm2CmjYFTZ-lKSyfuFNo1ar" alt=""><figcaption></figcaption></figure>

15. **Block "End"** (this block ends the scenario execution or returns the subprocess diagram to the main process).

**Diagram "AutoGetData"**

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXfAmcZ52wYR_FkFacoPcvGXlyOynlEM1gixBGHDPOQyaMAQm3GkegeIWv05ONHdezvBFB5niuM2bcTQTYn2lreY7eL6X4taxwiMK_JdRhLAotNiU-NzA1YYMqELLOxFaP531hdGJg?key=EEm2CmjYFTZ-lKSyfuFNo1ar" alt=""><figcaption></figcaption></figure>

<br>

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXcCGbshZFSIKnpjMWkSE9_tNLWO8bqiBRpNwdmm6sBeU1U4kTRYtCpNtOcdpkxMYcgeQfxtIFp80RA-dnRo3viwqM31-Zmk99nKblPqdVJEgX1HQX56iTAjZHnFrd4U5IVkyF-o?key=EEm2CmjYFTZ-lKSyfuFNo1ar" alt=""><figcaption></figcaption></figure>

1. **Block "Start"** (any diagram starts from this block).
2. **Block "Click Mouse"** allows you to emulate a click on the specified element of the application by selector. The following properties are specified for this block:

* Selector (the identifier of the user interface element);
* Action (selecting the action, in this case, left mouse click);
* Process ID (a variable that stores the process identifier. Indicates which application needs to be worked with);
* Auto-scrolling (the set flag enables the auto-scrolling function of the list to the element that is outside the visible area).

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXfhl_z9z0pYMq8j5-FmKEK8_nY96z09bT9-qOV9yTOHu0Gnjn8nVaMxz_Y28TDtgW18GAdQNX7gyU0psQZXQDGeYZpyYlts55AEtyPUrpAJU5_nAI18FLapBpO1F35pxtI8dZHgaA?key=EEm2CmjYFTZ-lKSyfuFNo1ar" alt=""><figcaption></figcaption></figure>

3. **Block "Write Value to Cell"** allows you to write a value to a cell in the Excel document. The following properties are specified for this block:

* Document Link (a link to the document currently being worked on. The variable name in this property must match the variable name in the "Document Link" property of the "Create Document" or "Open Document" blocks from the Excel group that were previously used to create or open this document);
* Sheet (the ordinal number of the sheet where the required cell is located. Numbering starts from 1);
* Row (the row number where the required cell is located. Numbering starts from 1);
* Column (the column number where the required cell is located. Numbering starts from 1);
* Value (the variable that needs to be written to the required cell).

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXcoC6_J6JYbbzKTeocjIlo67M1w69WS-YKabt0rdhre-CcDMA8rWLDpUyo1n4w9w0QKmONZ5Nb6dHU9iIvj5KzBHoT35lK73ReiyM6NbdNvNnklvNVdS6NE58jq94O_oXIov3H0XA?key=EEm2CmjYFTZ-lKSyfuFNo1ar" alt=""><figcaption></figcaption></figure>

4. **Block "Assign Value to Variable"** sets new values for one or more variables. In this case, three values are specified in the properties that need to be assigned to three variables, respectively.

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXeJogZRqB2Mt0E6qeMFxa4_ukeTb31QO58P_LI2ZiYJVPip6ES7ppf7J5ypFpD-l_hLBFtXjG037945VTrghshl69kkZLibuQy25NcEIq1klEQzNDKrPd4jfIKOpgmFTY0ELdHI-Q?key=EEm2CmjYFTZ-lKSyfuFNo1ar" alt=""><figcaption></figcaption></figure>

5. **Block "Click Mouse"** allows you to emulate a click on the specified element of the application by selector. The following properties are specified for this block:

* Selector (the identifier of the user interface element);
* Action (selecting the action, in this case, left mouse click);
* Process ID (a variable that stores the process identifier. Indicates which application needs to be worked with);
* Auto-scrolling (the set flag enables the auto-scrolling function of the list to the element that is outside the visible area).

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXc51RGdJZaQm-m78qA05i5y2IQLSqrjzao6DoGb8mvcD9YECtCIkulb-hIQFRmoMADdI1nXCeL2nmOK5yNRrvVzJLsD-qvrBLrE7onaoCs8WVbtrHTTufhQfGu1nn3wtaA0S8lm9w?key=EEm2CmjYFTZ-lKSyfuFNo1ar" alt=""><figcaption></figcaption></figure>

6. **Block "Press Keys"** allows you to emulate key presses on the keyboard. The following properties are specified for this block:

* Keys (text or keys that need to be emulated, this property is set to a variable);
* Process ID (a variable that stores the process identifier and the browser tab used by this block);
* Interactively (when the flag is set, pauses will be inserted between key presses);
* Pause Time (the pause between key presses in milliseconds);
* Select All (when the flag is set, the "Select All" key combination (Ctrl+A) is sent before starting input).

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXdD_e02Gu8QKFa37SkPN5jB2ySsSXLFUgHG5PeVqwWDdJSejAjEKv9q9P2QDbCUP61CgVxud0nyQv3bvX7mSyfXsR7gv_Pof6SFW3pzlJ40Y0aOQcYDEwhegYFc3WLtGy5Och7uQQ?key=EEm2CmjYFTZ-lKSyfuFNo1ar" alt=""><figcaption></figcaption></figure>

7. **Block "Pause"** allows you to pause the execution of the scenario for a specified time. The following properties are specified for this block:

* Unit of Measurement (the unit of measurement in which the duration of the pause is specified. In this case, seconds);
* Duration (the value of the time interval in units of measurement for which the scenario will be paused);
* Start Immediately (when the flag is set, the delay will be applied immediately on the first pass of this block from the moment the robot scenario is launched).

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXdhbZv3F8rJSo0Wk_dybWzIsk3JabEHPmbKI6KXDUGl5Dn2IX8SXhnW742OhDwEiIPZ2QU8ClheIVPR1a6O8-Z9E1C6nC8xP4efHFltmLJWamygr38rZTjLmSdT1AVcYEmke9jXIw?key=EEm2CmjYFTZ-lKSyfuFNo1ar" alt=""><figcaption></figcaption></figure>

8. **Block "Press Keys"** allows you to emulate key presses on the keyboard. The following properties are specified for this block:

* Keys (text or keys that need to be emulated, this property is set to a variable);
* Process ID (a variable that stores the process identifier and the browser tab used by this block).

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXdLGZH2I9T8tArmklH8Sx2qOz_AyoCp8Y6zLQxc1nhNEc8XKtEwGAT53UvKso9KhURnEfjZdQ6AcEX9zWcqRwCVZYaCEUq9sW__wZ4nN_Wn2aMlEnnQk4vu7qDXq0a8PwtG0EE5?key=EEm2CmjYFTZ-lKSyfuFNo1ar" alt=""><figcaption></figcaption></figure>

9. **Block "Pause"** allows you to pause the execution of the scenario for a specified time. The following properties are specified for this block:

* Unit of Measurement (the unit of measurement in which the duration of the pause is specified. In this case, seconds);
* Duration (the value of the time interval in units of measurement for which the scenario will be paused);
* Start Immediately (when the flag is set, the delay will be applied immediately on the first pass of this block from the moment the robot scenario is launched).

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXeq5EV8VYgN4vund63KS9NUrcuaS85SwjIW9CKpSxjP6tmCtEBvN-BN-GoruEei-rlCc8m-o0Wcyw7iJa-0ai1ktwdVlnTMzQIcG1HBStygZrOrBoy7ZPtPejfCzIfFqb3DZmr9dA?key=EEm2CmjYFTZ-lKSyfuFNo1ar" alt=""><figcaption></figcaption></figure>

10. **Block "Extract Data"** allows you to extract similar structured data from web pages (search results, menu items, lists, tables, etc.) and place them into a variable in the form of a Data Table. The following properties are specified for this block:

* Selector (the identifier of the browser window and the web page element, or a set of similar elements (headers, links, text blocks, etc.) that need to be extracted);
* Process ID (a variable that stores the process identifier and the browser tab used by this block).

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXfB3a-IlpfT1OpXoyXo_8YjMw9ZvfVukuDJBkGaUoUCUFbbZbz4zPDOjev3GujZnN9lwF02QnmGduCjrqf4MHY-Q6hANbtYO6RH-HTBXonLAYlks9t9lb2HOEGRb37ZVsLggB61?key=EEm2CmjYFTZ-lKSyfuFNo1ar" alt=""><figcaption></figcaption></figure>

11. **Block "Log"** allows you to output arbitrary messages and/or variable values to the log during the robot's scenario execution. For this block, the property "Value" is specified. The text constant is indicated in quotes, and the variable name starts with the symbol $. That is, this block logs a message in the format "Page 1. Count 55" and displays the text of this message in the status (at the top of the screen).

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXcovFoUfswuJQzSckI-uzP4QUVzuTT-MDuSQvdKTyF5RrXuX4BXOjq83HzXc0JVA-385cdCWuZ8OjvQnQXzXXcQ8bQaTnQdJOLfcHqCPv3k1DSZwl4rMmdnEQn0UVVrSeQCQ2MEKQ?key=EEm2CmjYFTZ-lKSyfuFNo1ar" alt=""><figcaption></figcaption></figure>

12. **Block "For Each (Data Table)"** cyclically iterates through all rows of the data table.

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXeM1BNEs0fS98YDbHbmWQp7jzzEVwHakdBTpEqQ8b_AbcipmUFRBBM9YP1remCDzZx_ZCK56plXwQ0oh1Eiu75Tc_bjivPN9B-Beg-7V-coE51HjYZb_LBEqtZ4uOSRfcAqN5FCLA?key=EEm2CmjYFTZ-lKSyfuFNo1ar" alt=""><figcaption></figcaption></figure>

13. **Block "Assign Value to Variable"** sets new values for one or more variables. In this case, one value is specified in the properties that need to be assigned to a specific variable.

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXci7uE2DO7_Y2D3of52Y_MG8P3yuZ3ppzCo8hhRp-xnlukv8wHKjob5A4fyr4hNcLaxnYcz-eVHqCnE5YforLRso415PexoyE__WcLuxzxP6k-K0jRPA0hJLv45vaKHYmqWE_BvhA?key=EEm2CmjYFTZ-lKSyfuFNo1ar" alt=""><figcaption></figcaption></figure>

14. **Block "Condition"** checks the specified condition for truth, after which the scenario execution continues towards the "Yes" exit (if the condition is met) or towards the "No" exit (if the condition is not met).

The condition is written in the format: "variable" equals (==)/ greater than (>)/ less than (<) "value".

For example: $a == "Hello", that is, if the value of the variable $a is equal to "Hello", then the exit is "Yes", otherwise – the exit is "No".

$Result > 5, that is, if the value of the variable $Result is less than 5, then the exit is "Yes", otherwise – the exit is "No". In this case, the condition is set as: $IndexPage < 5. That is, the value of the variable $IndexPage must be less than 5.

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXe-N5PKDR72XeWpgNyqQHedfxJ0vJXMB5pqGy3mGEkoIslFEpBQoyP2GMkzs7f_d1cgf8oUnzlWvygzg4j47lwdM3fEsJkVfbG4cvAH7Sf6FljTrBPMzDs42jaNxhgQL5wcGDpwVg?key=EEm2CmjYFTZ-lKSyfuFNo1ar" alt=""><figcaption></figcaption></figure>

15. **Block "Click Mouse"** allows you to emulate a click on the specified element of the application by selector. The following properties are specified for this block:

* Selector (the identifier of the user interface element);
* Action (selecting the action, in this case, left mouse click);
* Process ID (a variable that stores the process identifier. Indicates which application needs to be worked with);
* Auto-scrolling (the set flag enables the auto-scrolling function of the list to the element that is outside the visible area).

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXe8aboF-5i5mHmt_JNUnOCDB_dpz0eqY95zv9wS_dMQygXIjoMaTjH-A6e5aZJU9YiP75935KEykmhV2lwd8eSrN6lXBCAvgbwsqKC8ukjKWgXPHZskmPhVxk5B987Q4Jc8z8teTA?key=EEm2CmjYFTZ-lKSyfuFNo1ar" alt=""><figcaption></figcaption></figure>

16. **Block "Condition"** checks the specified condition for truth, after which the scenario execution continues towards the "Yes" exit (if the condition is met) or towards the "No" exit (if the condition is not met).

The condition is written in the format: "variable" equals (==)/ greater than (>)/ less than (<) "value".

For example: $a == "Hello", that is, if the value of the variable $a is equal to "Hello", then the exit is "Yes", otherwise – the exit is "No".

$Result > 5, that is, if the value of the variable $Result is less than 5, then the exit is "Yes", otherwise – the exit is "No". In this case, the condition is set as: $RowSalon\[0] == $OurSalon. That is, if the value of cell 0 in the row is equal to the value of the variable.

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXetabKTStPU8Zyl0eSB-zPGpUmlogKFhKvOReHy3rZtDP0AA-tXbHU0mDQfPaW1hH5l4gs7mdn3_9klaiRpufAzPLhdZUFlCwARX_o6OmjgNQfguSXLVAoQFNMQwIfPfHlm1J2Edg?key=EEm2CmjYFTZ-lKSyfuFNo1ar" alt=""><figcaption></figcaption></figure>

17. **Block "Write Value to Cell"** allows you to write a value to a cell in the Excel document. The following properties are specified for this block:

* Document Link (a link to the document currently being worked on. The variable name in this property must match the variable name in the "Document Link" property of the "Create Document" or "Open Document" blocks from the Excel group that were previously used to create or open this document);
* Sheet (the ordinal number of the sheet where the required cell is located. Numbering starts from 1);
* Row (the row number where the required cell is located. Numbering starts from 1);
* Column (the column number where the required cell is located. Numbering starts from 1);
* Value (the variable that needs to be written to the required cell).

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXeVdTcwKpj4Ff-F-9dakd9QOVMR8RQh0zW6cNEgpF1LXr-I1G3_bmj5aDJ9a0GsPoxbMB6fwRa0RgwH7HVf4wuNoXMKhuGeLqTBEjDJrqOn3Pech1xb34vDdwNbx8RZ-SazOZ3x?key=EEm2CmjYFTZ-lKSyfuFNo1ar" alt=""><figcaption></figcaption></figure>

18. **Block "Write Value to Cell"** allows you to write a value to a cell in the Excel document. The following properties are specified for this block:

* Document Link (a link to the document currently being worked on. The variable name in this property must match the variable name in the "Document Link" property of the "Create Document" or "Open Document" blocks from the Excel group that were previously used to create or open this document);
* Sheet (the ordinal number of the sheet where the required cell is located. Numbering starts from 1);
* Row (the row number where the required cell is located. Numbering starts from 1);
* Column (the column number where the required cell is located. Numbering starts from 1);
* Value (the variable that needs to be written to the required cell).

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXd4xqdzLpIhBGLEjKIAq6oEiRrkB6j4xno205wYeAYVUjLun8_d5AyOloSuFZDedXq-WrNz2swcBB46TP3-19L7l0KhabveIehWQTkJU4YIN70s9oUybpF1b_G5v1CZqQ0-nMlkTA?key=EEm2CmjYFTZ-lKSyfuFNo1ar" alt=""><figcaption></figcaption></figure>

19. **Block "Assign Value to Variable"** sets new values for one or more variables. In this case, one value is specified in the properties that need to be assigned to a specific variable.

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXeP3l9xfkfzZLSmYfV3VyLnU1PyeBT6ou9jY-Nkygz5080cK4ZsHablrk6kDTvPZYRAqVA3hZgW7hYkA_1DGwJsTs8AYOsHa5PHqbOupKIP5JB36N7IzmyL91316nYOHscXHC1MUw?key=EEm2CmjYFTZ-lKSyfuFNo1ar" alt=""><figcaption></figcaption></figure>

20. **Block "Write Value to Cell"** allows you to write a value to a cell in the Excel document. The following properties are specified for this block:

* Document Link (a link to the document currently being worked on. The variable name in this property must match the variable name in the "Document Link" property of the "Create Document" or "Open Document" blocks from the Excel group that were previously used to create or open this document);
* Sheet (the ordinal number of the sheet where the required cell is located. Numbering starts from 1);
* Row (the row number where the required cell is located. Numbering starts from 1);
* Column (the column number where the required cell is located. Numbering starts from 1);
* Value (the variable that needs to be written to the required cell).

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXeyOI8uOsuEv8he1ZAiNUxSJ3rko0uSIVcGuHKzM5ZRLdWeXXKYitcodtFGnVfjeIJQ8MNAR_bzi-MopVEs_H4XsSrgbCeiH94xhdL6CrJVCVsynKzBspFPp29hwhj-XQEVhWTW?key=EEm2CmjYFTZ-lKSyfuFNo1ar" alt=""><figcaption></figcaption></figure>

21. **Block "Write Value to Cell"** allows you to write a value to a cell in the Excel document. The following properties are specified for this block:

* Document Link (a link to the document currently being worked on. The variable name in this property must match the variable name in the "Document Link" property of the "Create Document" or "Open Document" blocks from the Excel group that were previously used to create or open this document);
* Sheet (the ordinal number of the sheet where the required cell is located. Numbering starts from 1);
* Row (the row number where the required cell is located. Numbering starts from 1);
* Column (the column number where the required cell is located. Numbering starts from 1);
* Value (the variable that needs to be written to the required cell).

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXc9RQWE13t-eWs7QpC0eOa_yJU6Xi9-FqoijXiT1DzGAIpoXTqW52Oti7AhoQfUF0EgvY0Nf9x60bPcmsw3_ONkGwZiAUg8PmAh1qRTjWPo4w5rV7SS_0Obv7QarMPjqlYNm2zrww?key=EEm2CmjYFTZ-lKSyfuFNo1ar" alt=""><figcaption></figcaption></figure>

22. **Block "Write Value to Cell"** allows you to write a value to a cell in the Excel document. The following properties are specified for this block:

* Document Link (a link to the document currently being worked on. The variable name in this property must match the variable name in the "Document Link" property of the "Create Document" or "Open Document" blocks from the Excel group that were previously used to create or open this document);
* Sheet (the ordinal number of the sheet where the required cell is located. Numbering starts from 1);
* Row (the row number where the required cell is located. Numbering starts from 1);
* Column (the column number where the required cell is located. Numbering starts from 1);
* Value (the variable that needs to be written to the required cell).

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXep850tCk1y2Tyfwy3QWiFDmRgiNlkHvGxYsoSFjKWzq9xv-5N4NWzclOaIOALwvJ9cqZz1hRTl0vw39HLBGft9UYn8Mg0R1-0t2fLpg6crufYVcn1S9D9T5Q2ZQRaB78GS_ZBE?key=EEm2CmjYFTZ-lKSyfuFNo1ar" alt=""><figcaption></figcaption></figure>

23. **Block "Assign Value to Variable"** sets new values for one or more variables. In this case, one value is specified in the properties that need to be assigned to a specific variable.

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXeK4GF_MWuZnUjjgKU0XnKCYR2VEhfMMFEIkcuyldquhzrSiFqCW-5MWoXB9QJqTsgW52EhwJrTf9J6-MR9Wtpl1lec3e_ZKP_XfWHtYTOc66nktUgIa7q3dCzvRSl3rTXWeybGFA?key=EEm2CmjYFTZ-lKSyfuFNo1ar" alt=""><figcaption></figcaption></figure>

24. **Block "End"** (this block ends the scenario execution or returns the subprocess diagram to the main process).


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.sherparpa.ru/en/sherpa-rpa/sherpa-designer/primery-robotov/get-auto.ru.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
