### GET Request Example - Only Content Source: https://zennolab.atlassian.net/wiki/spaces/RU/pages/1980268819 This snippet shows an example of the response body when requesting 'https://httpbin.org/get' and configuring the action to load only the content. ```json { "args": {}, "headers": { "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9", "Accept-Encoding": "gzip, deflate", "Accept-Language": "en-US,en;q=0.8", "Host": "httpbin.org", "Referer": "https://google.com", "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36", "X-Amzn-Trace-Id": "Root=1-26erb44t-465basaw0z2qwbji492yh5t3" }, "origin": "1.2.3.4", "url": "https://httpbin.org/get" } ``` -------------------------------- ### Visual Studio Project Example Source: https://zennolab.atlassian.net/wiki/spaces/RU/pages/492142673 Refers to a Visual Studio project setup. This implies a structured development environment for C# applications. ```plaintext * Проект Visual Studio ``` -------------------------------- ### Manual Loop for Pagination Source: https://zennolab.atlassian.net/wiki/spaces/RU/history/489259031 This example illustrates a manual loop setup for navigating through paginated websites. The loop continues until the 'Next' button is no longer found, indicating the end of pages. This is useful when the number of pages is unknown. ```ZennoPoster В данном случае условием выхода будет ошибка при клике по кнопке _Далее_ __(когда экшен не находит элемент, он завершается ошибкой). ``` -------------------------------- ### GET Request Example: Fetching Content Source: https://zennolab.atlassian.net/wiki/spaces/RU/pages/534315165 This snippet demonstrates how to use the GET Request action to fetch only the content of a response. It shows an example response from httpbin.org/get. ```text { "args": {}, "headers": { "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9", "Accept-Encoding": "gzip, deflate", "Accept-Language": "en-US,en;q=0.8", "Host": "httpbin.org", "Referer": "https://google.com", "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36", "X-Amzn-Trace-Id": "Root=1-26erb44t-465basaw0z2qwbji492yh5t3" }, "origin": "1.2.3.4", "url": "https://httpbin.org/get" } ``` -------------------------------- ### Start Instance with Empty Profile Folder Source: https://zennolab.atlassian.net/wiki/spaces/RU/history/1251475485 Launch an instance and associate it with a specific profile folder path. Ensure the 'Create folder if it does not exist' option is checked when initially setting up a profile folder. ```text Select "Chrome" and check the "Use profile folder path" box. Ensure the "Create folder if it does not exist" checkbox is ticked. ``` -------------------------------- ### Demonstration Project Setup for Touch Events in C# Source: https://zennolab.atlassian.net/wiki/spaces/RU/history/735674386 This code snippet represents the setup for a demonstration project involving touch events. It likely includes initialization and context setup for executing touch actions. ```C# // Assuming 'context' is an initialized execution context // Example: var context = new ProjectContext(); // ... setup code ... ``` -------------------------------- ### Get List of Installed Extensions Source: https://zennolab.atlassian.net/wiki/spaces/RU/history/2081423361 Retrieves information about all installed extensions. The output can be formatted to include names, IDs, or both. ```C# var allExtensions = instance.GetAllExtensions(); //allExtensions[0].Name //allExtensions[0].Id ``` -------------------------------- ### Start Instance with Existing Profile Folder Source: https://zennolab.atlassian.net/wiki/spaces/RU/history/1251475485 When using a pre-nurtured profile folder, start the instance by specifying the folder path. Ensure the 'Create folder if it does not exist' option is unchecked. ```text Specify the path where your unique profile folder is located. The "Create folder if it does not exist" checkbox should be unchecked. ``` -------------------------------- ### StandAlone Installation with Custom Path and Login Source: https://zennolab.atlassian.net/wiki/spaces/RU/history/1358397467 This command initiates a 'StandAlone' installation type with user-provided login and password for authorization. It uses a specific SaleID, installs to a custom path, and waits for user action if an error occurs. The license is selected based on the SaleID. ```bash start /wait Installer.exe --silent --accept-license-agreement ="https://zennolab.com/terms-of-service/" --installType =”StandAlone” --login =”userareaLogin” --password =”userareaPassword” --saleID ="SALE_ID" --installPath ="D:/ZennoLab/" --waitUserAction ``` -------------------------------- ### Example File Download Path Source: https://zennolab.atlassian.net/wiki/spaces/RU/history/1980268819 Shows an example of a file path where a downloaded file would be saved by default. Files are typically saved in the 'Trash' folder within the ZennoPoster installation directory. ```Path C:\\Program Files\\ZennoLab\\RU\\ZennoPoster Pro V7\\7.4.0.0\\Progs\\Trash\\googlelogo_color_92x30dp.png ``` -------------------------------- ### GET Request Response Content Example Source: https://zennolab.atlassian.net/wiki/spaces/RU/history/534315165 This snippet shows the JSON response body captured when downloading only the content of a GET request. It includes arguments, headers, origin IP, and the requested URL. ```json { "args": {}, "headers": { "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9", "Accept-Encoding": "gzip, deflate", "Accept-Language": "en-US,en;q=0.8", "Host": "httpbin.org", "Referer": "https://google.com", "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36", "X-Amzn-Trace-Id": "Root=1-26erb44t-465basaw0z2qwbji492yh5t3" }, "origin": "1.2.3.4", "url": "https://httpbin.org/get" } ``` -------------------------------- ### Emulator VM Start Action Source: https://zennolab.atlassian.net/wiki/spaces/RU/history/1879048219 When 'Record' is enabled, clicking 'Start virtual machine' adds these two actions to the action canvas. ```text Выбрать виртуальную машину Запуск виртуальной машины ``` -------------------------------- ### Set Proxy with Clash Configuration Source: https://zennolab.atlassian.net/wiki/spaces/RU/history/3831267329 This example demonstrates setting a proxy using the new Clash method. It shows how to specify IP addresses, DNS servers, and application whitelists/blacklists. ```C# _instance.DroidInstance.Proxy.SetProxy(string proxy, IDroidProxySettings settings); ``` -------------------------------- ### Get Current IP Address Example Source: https://zennolab.atlassian.net/wiki/spaces/RU/history/534315165 Demonstrates how to retrieve the current IP address of the project by making a GET request to an external service. Ensure 'Current project proxy' is selected in the Proxy tab. ```http GET https://api.ipify.org/ ``` -------------------------------- ### GET Request Response Headers Example Source: https://zennolab.atlassian.net/wiki/spaces/RU/history/534315165 This snippet displays the HTTP headers captured from a GET request response. It includes status, date, content type, server information, and access control details. ```http HTTP/1.1 200 OK Date: Sat, 23 May 2020 01:56:45 GMT Content-Type: application/json Content-Length: 613 Connection: keep-alive Server: gunicorn/19.9.0 Access-Control-Allow-Origin: * Access-Control-Allow-Credentials: true ``` -------------------------------- ### Initializing Instance and Project Objects Source: https://zennolab.atlassian.net/wiki/spaces/RU/pages/1987248306/using%2BZD Illustrates how to initialize 'instance' and 'project' objects within common code, as direct access is not available. Objects must be initiated via 'new' or passed as function arguments. ```csharp Instance instance = new Instance("127.0.0.1", 40500, "server"); // Project variables need to be passed as function arguments. ``` -------------------------------- ### GET Request Example: Fetching Current IP Source: https://zennolab.atlassian.net/wiki/spaces/RU/history/1980268819 This snippet demonstrates how to use the GET Request action to retrieve the current IP address of the project. Ensure 'Current project proxy' is selected in the Proxy tab. ```ZennoPoster GET-запрос (ZD) /V4Jul 24, 04:12 PM Copy link Total: 2 edits PreviousNext GET-запрос (ZD) REMOVED ``` -------------------------------- ### Proxy String Format Examples Source: https://zennolab.atlassian.net/wiki/spaces/RU/pages/489259052 Provides examples of how to format proxy strings, including options with and without authorization, and with or without specifying the protocol. ```text a) socks5://login:password@ip:port or http://login:password@ip:port b) socks5://ip:port or http://ip:port c) login:password@ip:port or ip:port ``` -------------------------------- ### Standard Browser Actions in ZennoDroid Source: https://zennolab.atlassian.net/wiki/spaces/RU/pages/2484305933 This example demonstrates creating a ZennoDroid template from scratch to perform common browser actions like opening the browser, searching, navigating to a link, and returning to the home screen. ```ZennoDroid Open browser Input the desired query into the search bar Follow the link Return to the home screen ``` -------------------------------- ### Example Response: Only Content Source: https://zennolab.atlassian.net/wiki/spaces/RU/history/1980268819 Illustrates the response when the 'Only content' option is selected for a GET request. This saves only the body of the response. ```HTTP Пример ответа при запросе https://httpbin.org/get ``` -------------------------------- ### Configuring Touch Event Settings in C# Source: https://zennolab.atlassian.net/wiki/spaces/RU/history/735674386 This example shows how to configure additional settings for a touch event action. Refer to the 'Настройки' section for available options. ```C# var touchAction = new TouchAction(); touchAction.Element = "some_element_id"; // Example element selection touchAction.Settings = new TouchSettings { Delay = 500 }; // Example setting touchAction.Execute(context); ``` -------------------------------- ### Example: Download Directory if Not Empty Source: https://zennolab.atlassian.net/wiki/spaces/RU/history/1981841440 This example checks if an FTP directory contains files by getting a list of files. If the directory is not empty, it downloads the directory; otherwise, it displays a notification and stops execution. Ensure FTP connection settings are configured. ```ZennoPoster instance.ActiveTab.FTPDirectories.GetFilesList(project.Lists["files_list"], "files", true); if (project.Lists["files_list"].Count > 0) { instance.ActiveTab.FTPDirectories.DownloadDirectory(project.Directory + "/files", "files", true); } else { instance.SendNotification("FTP directory is empty."); return; } ``` -------------------------------- ### Chrome Browser Launch with URL Source: https://zennolab.atlassian.net/wiki/spaces/RU/history/2012741908 Example of launching the Chrome browser with a specific URL. This demonstrates passing command-line arguments to an executable. ```text C:\Program Files (x86)\Google\Chrome\Application\chrome.exe https://zennolab.com ```