# Welcome to BrowTo

## Overview

BrowTo (the fusion of Browser and Auto) is an efficiency-enhancing assistant that automatically runs scripts on common antidetect browsers and Google Chrome. It is the ultimate weapon for automated browsers.

<figure><img src="https://1490959813-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FL6WLuERAo9yq6f5Anerv%2Fuploads%2FlhvHYCSJSqHpxgg7gs4T%2Fhome.png?alt=media&amp;token=e801488b-3547-4913-b307-af768d55647a" alt=""><figcaption></figcaption></figure>

## Quick Go to Getting Started

{% content-ref url="/pages/BLYbeqpU054xoL8LbU2H" %}
[Usage Process](/getting-started/shi-yong-liu-cheng)
{% endcontent-ref %}

{% content-ref url="/pages/XIzP8PSwXZKot3RYyLPb" %}
[Recording script](/getting-started/lu-zhi-jiao-ben)
{% endcontent-ref %}

{% content-ref url="/pages/tRUlWDU0YxQ7Hb8ucnjJ" %}
[Workflow](/getting-started/gong-zuo-liu)
{% endcontent-ref %}

## Fast forward to Next Level

{% content-ref url="/pages/OSJHvucKJfZoLUaEavZ7" %}
[Automation Extensions](/next-level/zi-dong-hua-cha-jian)
{% endcontent-ref %}

{% content-ref url="/pages/MDaCuavmtt1rjd0yC6aP" %}
[Extension Constants](/next-level/cha-jian-chang-liang)
{% endcontent-ref %}

## Fast Go to Advanced

{% content-ref url="/pages/kdCplwvnSluZyopS8pum" %}
[Debugging](/advanced/tiao-shi)
{% endcontent-ref %}

{% content-ref url="/pages/tHUAbsYHorJcUE8R1eOY" %}
[FAQ](/advanced/chang-jian-wen-ti)
{% endcontent-ref %}


# Usage Process

### Overview

After successfully registering and logging in, the first thing you see is our home page:

<figure><img src="https://1490959813-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FL6WLuERAo9yq6f5Anerv%2Fuploads%2FlhvHYCSJSqHpxgg7gs4T%2Fhome.png?alt=media&amp;token=e801488b-3547-4913-b307-af768d55647a" alt=""><figcaption></figcaption></figure>

You can see a connection browser[ ](#di-yi-bu-lian-jie-liu-lan-qi)and four columns at the top: Home, Tasks, Script Market and Settings, as well as a day/night theme switch button and a personal information pop-up button on the right. The home page is currently selected by default. The home page has two columns: Scripts and Workflows. The script is selected by default. You can select the script category on the left and the filtered script list on the right. You can also search and sort these scripts.

### Step 1: Connect to the browser

Click on the upper left corner to connect to the browser, and a browser selection pop-up window will pop up:

<figure><img src="https://1490959813-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FL6WLuERAo9yq6f5Anerv%2Fuploads%2FTyR0BHwj2u86Aq09ZJva%2FWX20240530-162922%402x.png?alt=media&amp;token=a8a85adb-59ab-4a4b-97a0-3a612024c093" alt=""><figcaption></figcaption></figure>

#### Connect Antidetect Browsers

As you can see, there is a separate Google browser and the three most commonly used anti-detect browsers (AdsPower and Bit browser and MoreLogin anti-detect browser), and the default pop-up will light up the already opened anti-detect browser client. And the client needs to have opened the API function and the default API port (AdsPower API function needs to be paid, the default port is 50325, the bit browser does not need, the default port is 54345, MoreLogin limited time experience, the default port is 40000), if you have not opened the anti-detect browser, After opening, click the Check anti-detect browser connection button to refresh, and then click any client that has been lit up to connect normally.

#### Connect to Google Chrome

Whether it is MacOS or Windows operating system, if you have opened Chrome browser, please completely exit Chrome browser (MacOS: Cmd+Q), and then click the Chrome icon displayed in the  App, wait for the app to automatically open Chrome, the automatic connection succeeds.

{% hint style="info" %}
If you can't connect and you have enabled VPN service, please close your VPN and try again.
{% endhint %}

### Step 2: Download the script

Click the Download Script button on the homepage, or the Script Market button at the top to enter the Script Market page:

<figure><img src="https://1490959813-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FL6WLuERAo9yq6f5Anerv%2Fuploads%2FYX5ClKCXzhB1AkJKxRIf%2FWX20240530-165102%402x.png?alt=media&amp;token=019f7b46-1d03-4c26-b830-914e4aa5d40e" alt=""><figcaption></figcaption></figure>

Click the small cloud icon in the upper right corner of the Google Search script to quickly download it, or click the script and click Download in the pop-up window details:

<figure><img src="https://1490959813-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FL6WLuERAo9yq6f5Anerv%2Fuploads%2FiEOBeiaOS6QJDq7R7SdV%2FWX20240530-165241%402x.png?alt=media&amp;token=ff93739c-70e5-450e-865d-af02c5ab4c7c" alt=""><figcaption></figcaption></figure>

### Step 3: Configure the script (optional)

After clicking download, follow the instructions to return to the home page, and you can see the Google search script in the script list on the page:

<figure><img src="https://1490959813-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FL6WLuERAo9yq6f5Anerv%2Fuploads%2FjzgV4665cMBEUAosXedD%2FWX20240530-165512%402x.png?alt=media&amp;token=f91f4344-4871-4599-bbfc-0361cb4bd286" alt=""><figcaption></figcaption></figure>

Before configuration, we can click View in the menu to view the execution process and source code of the script:

<figure><img src="https://1490959813-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FL6WLuERAo9yq6f5Anerv%2Fuploads%2FCiDOdQOElHT5JUkzggxf%2FWX20240530-165618%402x.png?alt=media&amp;token=2e4b5dcd-a65d-4e63-b057-9a1eba00ccae" alt=""><figcaption></figcaption></figure>

Click source code to view the script source code:

<figure><img src="https://1490959813-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FL6WLuERAo9yq6f5Anerv%2Fuploads%2FaIND0H2VWqp7cLSAydfX%2FWX20240530-165746%402x.png?alt=media&amp;token=d5756418-7387-4051-81ce-512482aa648c" alt=""><figcaption></figcaption></figure>

This script requires us to configure the search keywords. Click the quick configuration button or click the configuration button in the menu to configure the script:

<figure><img src="https://1490959813-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FL6WLuERAo9yq6f5Anerv%2Fuploads%2FqnPJq6xZAvwKPcACS9Jn%2FWX20240530-165927%402x.png?alt=media&amp;token=ce90d626-0aa0-4c4e-8c1a-172e576a0ef5" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
If you're not connecting to antidetect browser, the configuration window and concurrency options will not appear
{% endhint %}

Click the Add Window button and select the antidetect browser window where you want to run this script in the pop-up window (no configuration is required for the Google Chrome):

<figure><img src="https://1490959813-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FL6WLuERAo9yq6f5Anerv%2Fuploads%2FLouNHz88hAo5KLuWhKAq%2FWX20240530-170235%402x.png?alt=media&amp;token=648d44a3-ba82-43f4-b1fc-912b8e75df8f" alt=""><figcaption></figcaption></figure>

After selecting and saving, set the number of concurrent windows (the maximum number of browser windows running at the same time). At this moment, we only bind one window, so set it to 1. Next, configure the search content: ETH (or the content you want to search for) and click Save.

### Step 4: Run the script

<figure><img src="https://1490959813-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FL6WLuERAo9yq6f5Anerv%2Fuploads%2FJal4kTnT0CpGsM9mhIMr%2FWX20240530-170414%402x.png?alt=media&amp;token=614ea476-af96-4cb5-98db-5272a18a29ac" alt=""><figcaption></figcaption></figure>

Click the Run Script shortcut button, or click the Run button in the pop-up details to immediately run the script in the selected antidetect browser window.

When the task is completed, the antidetect browser window will automatically exit (Google Chrome closes the tab automatically), and then go to the task page according to the guidance:

<figure><img src="https://1490959813-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FL6WLuERAo9yq6f5Anerv%2Fuploads%2Fa6qhG2huCzUOdej4cI1i%2FWX20240530-170720%402x.png?alt=media&amp;token=a79f8b60-95a2-4818-97b6-3fbbc67f0331" alt=""><figcaption></figcaption></figure>

You can see the script record we executed, the status is Done, click the log information button in the operation, and you can view the detailed log record:

<figure><img src="https://1490959813-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FL6WLuERAo9yq6f5Anerv%2Fuploads%2FNaJ8lyciecdR3PvQ64hp%2FWX20240530-170815%402x.png?alt=media&amp;token=3d507f7f-786e-4339-b48b-610ff1c424ab" alt=""><figcaption></figcaption></figure>

By now, congratulations on learning the basic flow!


# Recording script

### Overview

The scripts in the script market are far from meeting personal needs, so we need to record our own scripts for import.

Recording your own scripts requires almost no coding knowledge (of course, it will be easier if you have it), and usually a script takes less than 10 minutes to complete. Next, follow my steps step by step to record a simple script.

### Step 1: Get to know the recorder

Open the installed Google Chrome and go to <https://www.douban.com/> . At the same time, our script needs to find the best-rated science fiction movies in the 2010s.

Right-click on the Douban homepage and select the last item **Inspect** , then the Google Chrome developer tools will open. The developer tools will open the **Elements panel by default, and then select More options, More tools, and Recorder** from top to bottom according to the following picture

<figure><img src="https://content.gitbook.com/content/L6WLuERAo9yq6f5Anerv/blobs/YP0LCbij2iNG4aH5vCjZ/WX20240309-135734@2x.png" alt=""><figcaption></figcaption></figure>

In the recorder tool that opens, we click New Recording:

<figure><img src="https://content.gitbook.com/content/L6WLuERAo9yq6f5Anerv/blobs/EXtteoIBYqYAF4JtcMdk/WX20240309-140604@2x.png" alt=""><figcaption></figcaption></figure>

We fill in Douban Query Test (Or feel free to fill in whatever you want) as the script name, and then click Start Recording:

<figure><img src="https://content.gitbook.com/content/L6WLuERAo9yq6f5Anerv/blobs/Zl8m7XZS3DM2vdqjB9ZF/WX20240309-140717@2x.png" alt=""><figcaption></figcaption></figure>

Next, we click on the following icons in turn (select Movie->Type (Science Fiction)->Decade (2010s)):

<figure><img src="https://content.gitbook.com/content/L6WLuERAo9yq6f5Anerv/blobs/wUSJxs46vrDRuySeGi1H/WX20240309-140834@2x.png" alt=""><figcaption></figcaption></figure>

<figure><img src="https://content.gitbook.com/content/L6WLuERAo9yq6f5Anerv/blobs/SLjGYuJN0PEXChCIrQl4/WX20240309-140903@2x.png" alt=""><figcaption></figcaption></figure>

<figure><img src="https://content.gitbook.com/content/L6WLuERAo9yq6f5Anerv/blobs/L0PYymtNpZbSJ6ScKtbB/WX20240309-140927@2x.png" alt=""><figcaption></figcaption></figure>

Finally, click End Recording in the developer tools:

<figure><img src="https://content.gitbook.com/content/L6WLuERAo9yq6f5Anerv/blobs/rJutkgD0Fo3KgjhOlE7e/WX20240309-141010@2x.png" alt=""><figcaption></figcaption></figure>

In less than five minutes, we have completed our first exclusive script. Next, let's try to see if the script works properly! Click the replay button:

<figure><img src="https://content.gitbook.com/content/L6WLuERAo9yq6f5Anerv/blobs/2FMf0ADOYUCyXRzRmfDP/WX20240309-141423@2x.png" alt=""><figcaption></figcaption></figure>

If nothing unexpected happens, you can see that Google Chrome has automatically completed the series of operations just now for us.

### Step 2: Import BrowTo App

After Google Chrome works fine, we choose to export, once selecting Export->JSON format, and then save to the computer:

<figure><img src="https://content.gitbook.com/content/L6WLuERAo9yq6f5Anerv/blobs/patAUFX8rjxfq0PyJUiT/WX20240309-141940@2x.png" alt=""><figcaption></figcaption></figure>

Then open our browot app, click the arrow on the right side of the download script on the homepage, import the script, select the script just exported and confirm the import:

<figure><img src="https://1490959813-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FL6WLuERAo9yq6f5Anerv%2Fuploads%2F4G7qV6kjaZJ6sNXa3zkg%2FWX20240530-172114%402x.png?alt=media&amp;token=0586aaa8-3245-44ee-ae12-1d673692d22b" alt=""><figcaption></figcaption></figure>

To confirm if the script URL is malicious, we click identified the risk and import it:

<figure><img src="https://1490959813-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FL6WLuERAo9yq6f5Anerv%2Fuploads%2FJtUlCVIqKYdsboVtegkv%2FWX20240530-172441%402x.png?alt=media&amp;token=8266fe9e-d418-4b26-8ccc-7dd8dc15d01d" alt=""><figcaption></figcaption></figure>

After importing, the script editing process page will be automatically opened. We fill in the description: Find the best science fiction movies of the 2010s or what you want, and then click OK:

<figure><img src="https://1490959813-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FL6WLuERAo9yq6f5Anerv%2Fuploads%2FMWJ0paNVQHMAOQ8B29Uy%2FWX20240530-172818%402x.png?alt=media&amp;token=0ce03f46-eade-4d5b-b307-2cbb43277d9b" alt=""><figcaption></figcaption></figure>

Then follow the guide to go to Source->Local Import, and you can see the Douban query test script we just imported. We find that we need to configure the window and concurrency again. In order to prevent us from configuring the window and concurrency for the script every time, we first go to Settings and click the Settings menu at the top of BrowTo App:

<figure><img src="https://1490959813-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FL6WLuERAo9yq6f5Anerv%2Fuploads%2FapBGMwvt8OW1244d3LWC%2FWX20240530-173128%402x.png?alt=media&amp;token=d91b7950-eb6c-4080-8509-b1a633c8feab" alt=""><figcaption></figcaption></figure>

We configure the currently selected antidetect browser globally. After configuring the bound window and the number of concurrent connections, click Update Configuration at the bottom. Then return to the homepage and find the script just imported. It has become a state that can be run directly. Click Run to automatically run it in the specified window.

Finally, you can go to [https://developer.chrome.com/docs/devtools/recorder?hl=en](https://developer.chrome.com/docs/devtools/recorder?hl=zh-cn) for instructions and tips on the recorder.


# Workflow

### Overview

Workflow allows multiple scripts to be executed in a linked manner, or in a disordered order. It is very useful when multiple scripts have a causal relationship or we want to execute a few of these scripts at random. Next, we will use the Douban script we recorded in the previous chapter to learn it.

### Step 1: Edit the script

Find the Douban script we imported earlier, click the More menu, and then click Edit:

<figure><img src="https://1490959813-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FL6WLuERAo9yq6f5Anerv%2Fuploads%2F7PHvXA9k66tQ2KqAIiVr%2FWX20240530-173512%402x.png?alt=media&amp;token=af7908b8-b613-4d22-a2f0-e4afc5348827" alt=""><figcaption></figcaption></figure>

In the pop-up box process, click to expand and **click the "2010 年代"** button. You can see that we can add some effects to this operation. First, we click to add a browsing step, enter 5 in the browsing seconds input box after the word slides, and then click Add:

<figure><img src="https://1490959813-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FL6WLuERAo9yq6f5Anerv%2Fuploads%2FjWyC128uSLSnz9jsLzOU%2FWX20240530-173701%402x.png?alt=media&amp;token=35756a1d-e71b-4331-919a-b2a31ba720eb" alt=""><figcaption></figcaption></figure>

This step means that after clicking on the 2010s, wait for 5 seconds for the web page to complete the classification work and display the latest list. Then we click to bind the output variable:

<figure><img src="https://1490959813-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FL6WLuERAo9yq6f5Anerv%2Fuploads%2F9pfwtsIQvOUaTjESBY5Y%2FWX20240530-173814%402x.png?alt=media&amp;token=3cc5633c-b93b-4145-9107-bf98ec978e09" alt=""><figcaption></figcaption></figure>

This step means that after the page clicks on the 2010s, we need to extract some web page text content we need on the current page for use by other scripts. In this example, we need to get the name of the movie. We fill in the variable name as the movie name in the pop-up box, and we will fill in the selector in the second step.

### Step 2: Find the selector

In this step of editing the script process, if you need to output variables (that is, the previous step) and set it as a list batch operation, you need to understand the selector. Let's go back to Google Chrome and find the first item in the list of selected movies: Interstellar. Right-click on the title of Interstellar and **Inspect** to come to the developer tools we are familiar with:

<figure><img src="https://content.gitbook.com/content/L6WLuERAo9yq6f5Anerv/blobs/kXCceyJh3EFB9HK8Me2b/WX20240309-145929@2x.png" alt=""><figcaption></figcaption></figure>

Place the mouse on the default selected HTML content (on the right in the above picture) to see if the desired content on the left page, i.e. the four words "Interstellar", are highlighted. If not, you can click the Select Element button in the developer tools ( the first button on the left of **Elements** ), and then click Interstellar to select the HTML element by default.

Next, right-click on the selected HTML element and select Copy -> Copy selector.

Then we go back to BrowTo app, paste the selector in the selector input box, and then add it. You can see that we have added two operations to the current click:

<figure><img src="https://1490959813-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FL6WLuERAo9yq6f5Anerv%2Fuploads%2Fqv88euZulFRSeaH9Lave%2FWX20240530-174308%402x.png?alt=media&amp;token=c6bdf1bf-72c8-4e02-8b80-0357e4e28f13" alt=""><figcaption></figcaption></figure>

Finally confirm and update the editing process.

### Step 3: Create a new workflow

We click the Workflow tab, click Add Workflow on the right, fill in Workflow Test in the name in the pop-up window, and then click Add Script:

<figure><img src="https://1490959813-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FL6WLuERAo9yq6f5Anerv%2Fuploads%2FlUjoIt377IzpBesLy6pd%2FWX20240530-174514%402x.png?alt=media&amp;token=99c4b7fb-bc36-4f61-9763-82fa7190d4df" alt=""><figcaption></figcaption></figure>

In the script adding pop-up window, first select the Douban query test script, then select the Google search script (the selection order determines the subsequent input variable references. In the sequential execution mode, the later selected script can reference the previously selected script):

<figure><img src="https://1490959813-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FL6WLuERAo9yq6f5Anerv%2Fuploads%2FYOl5E0avcZt65tdGyMUU%2FWX20240530-174631%402x.png?alt=media&amp;token=efa60dc1-abb4-40dc-805d-8e2bae9da392" alt=""><figcaption></figcaption></figure>

Then go back and hover your mouse over the Google search script. You can see a pop-up window with optional input configuration:

<figure><img src="https://1490959813-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FL6WLuERAo9yq6f5Anerv%2Fuploads%2F1UKmkC3iSRMzPSkD8zzK%2FWX20240530-174738%402x.png?alt=media&amp;token=515cfeeb-95ab-4195-a98e-1f5925e06e7f" alt=""><figcaption></figcaption></figure>

We click Modify Input Configuration and modify the default search content in the pop-up window. We first enter the @ symbol to reference the output content of the previous script (i.e. Douban script), and then add online watch:

<figure><img src="https://1490959813-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FL6WLuERAo9yq6f5Anerv%2Fuploads%2FDDk5Jp4puyE0AsfWX6XZ%2FWX20240530-174849%402x.png?alt=media&amp;token=980d7e66-2cdb-42a0-bc08-d4401398f583" alt=""><figcaption></figcaption></figure>

Finally, click Update, set the bound window and concurrency number, keep the sequential execution by default, and click Add.

Finally, click on the script run shortcut and you can see that the two scripts are run in sequence in the specified window, and finally search for the results of watching Interstellar Online watch in Google.


# Automation Extensions

### Overview

Currently, BrowTo fully supports the MetaMask extension and partially supports the Keplr extension. In the future, it will support more extensions such as Phantom, ArgentX, etc., or any extensions automation.

### Step 1: Configure the extension ID

First, we open any window of the connected antidetect browser, enter in the address bar and go to **chrome://extensions/** , you can see all the plug-ins installed in the current browser (how to install extensions in the antidetect browser is skipped here), then open the developer mode in the upper right corner, you can see the extension ID:

<figure><img src="https://content.gitbook.com/content/L6WLuERAo9yq6f5Anerv/blobs/pf8bGAufSh9riKdRmNdx/WX20240309-220726@2x.png" alt=""><figcaption></figcaption></figure>

Copy the ID, then go to BrowTo Settings, Global Configuration, configure the MetaMask extension ID. If they are the same, no configuration is required (manually added extension will be inconsistent with the ID of the Chrome extension market. After testing, AdsPower is inconsistent, but Bit Browser is consistent). Then configure the MetaMask unlock password (Note: all single script configurations and global configurations are saved locally and will not be stored in the cloud).

### Step 2: Test the script

Go to the script market, download **MetaMask and add the specified network (MetaMask添加指定网络)** script, then go back to configure the script. You can see that since we have globally configured the window, concurrency, and MetaMask unlock password, the only thing left to configure is the network name. Fill in Polygon Mainnet in the network name (Or other networks that your MetaMask has not added yet):

<figure><img src="https://1490959813-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FL6WLuERAo9yq6f5Anerv%2Fuploads%2FFInByytTi8ovADKZFoMR%2FWX20240530-175707%402x.png?alt=media&amp;token=31af14f6-868a-48f4-9114-70b475d2c454" alt=""><figcaption></figcaption></figure>

Then click Update and Save, and then click the Run button. You can see that the MetaMask extension installed on the browser automatically helps us add the Polygon main network.

How is this done? We click on the script more menu and select View. We can see that we have added three steps to the script flow:

<figure><img src="https://1490959813-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FL6WLuERAo9yq6f5Anerv%2Fuploads%2F9u5qa7KqXjktJVWMMbRt%2FWX20240530-175841%402x.png?alt=media&amp;token=62690c0b-0dda-479b-8605-ab2f76205220" alt=""><figcaption></figcaption></figure>

First, when we click Connect Wallet on the web page, we add a connect wallet operation to the click operation. Then, when we enter the network in the web page input box, we set the input to local configuration, that is, the dynamic network name, and the type is text/number. Finally, when we click Add to MetaMask on the web page (that is, add the network to the MetaMask), we add the signature operation of the MetaMask. Finally, the script completes all the processes.


# Extension Constants

### Overview

In the Getting Started [Workflow](/getting-started/shi-yong-liu-cheng) chapter, we have learned how to reference output variables (movie names). In addition, when we interact with various web pages, we will inevitably encounter the need to enter wallet addresses and token quantities. BrowTo provides the following system constants for input and configuration:

{% hint style="info" %}
When referencing constants, you need to enter **@\[constant name]\(constant name)** to distinguish them from ordinary input. For example, to reference metamask\_account, you need to enter **@\[metamask\_account]\(metamask\_account)**
{% endhint %}

**Wallet (**&#x49;t is well known that MetaMaks can add multiple wallet&#x73;**)**

* metamask\_account: current wallet address
* metamask\_account\_1: the first wallet address
* metamask\_account\_2: the second wallet address
* And so on

**Balance**

* metamask\_balance\_1: 10% of the current network token balance
* metamask\_balance\_2: 20% of the current network token balance
* And so on to 10, that is, metamask\_balance and metamask\_balance\_10 both represent the balance of all tokens

{% hint style="info" %}
Note: When referencing the above variables, you need to unlock or connect your wallet before you can reference them normally.
{% endhint %}

### Test

Next, let’s complete a script for automatically claiming funds on the Holesky test network. Open Google Chrome and go to <https://faucet.triangleplatform.com/ethereum/holesky> . Then right-click Inspect to find the recorder and click Start Recording (for detailed steps, go to the[ recording script ](/getting-started/lu-zhi-jiao-ben)in the Getting Started section ). Then click the web input box in turn, paste your wallet address, and click Request 0.001ETH. Wait for the prompt to succeed:

<figure><img src="https://content.gitbook.com/content/L6WLuERAo9yq6f5Anerv/blobs/6o6MiZZrLurHqGfWPRIv/WX20240309-225853@2x.png" alt=""><figcaption></figcaption></figure>

In order to prevent recording some unnecessary operations, we stop recording first. If you find that unnecessary operations are recorded, you can click the Delete button in the More menu of the current step.

Usually when we record a script, in order to know whether the script is executed successfully, we will add a step at the end, that is, wait for the success mark to appear. For this script, we need to wait for Success or the Tx of the transaction to appear, so we choose to add a step at the end in the menu of the last step of the recorder:

<figure><img src="https://content.gitbook.com/content/L6WLuERAo9yq6f5Anerv/blobs/dybxeLuqsI0V4UbK4ilZ/WX20240309-230243@2x.png" alt=""><figcaption></figcaption></figure>

Keep the default waitForElement for type, then click the selection button on the right side of selectors, and then select the Success text on the web page. The selectors in the recorder will be automatically filled in:

<figure><img src="https://content.gitbook.com/content/L6WLuERAo9yq6f5Anerv/blobs/7UhoAIXgyKaWKjfeGQXW/WX20240309-230534@2x.png" alt=""><figcaption></figcaption></figure>

Then we save the script as a JSON file, import it into BrowTo, and start configuring the script. First, we need to unlock the wallet by quoting the wallet address, so we expand the first step web address and select MetaMask in the binding plug-in operation to unlock the wallet:

<figure><img src="https://1490959813-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FL6WLuERAo9yq6f5Anerv%2Fuploads%2FoyzLMki0YZCNtwX4oBrN%2FWX20240530-181046%402x.png?alt=media&amp;token=90dd7c69-f70f-4faf-9761-b3a83ddf7ecf" alt=""><figcaption></figcaption></figure>

Next, expand the wallet address input step, click Set as Local Configuration Item, configure the name as Wallet, and the type as Text/Number:

<figure><img src="https://1490959813-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FL6WLuERAo9yq6f5Anerv%2Fuploads%2Faj0lHHmupd9MvemEzCk4%2FWX20240530-181123%402x.png?alt=media&amp;token=6b8c130e-8d53-4233-980a-4c99bfce16d3" alt=""><figcaption></figcaption></figure>

The final result is shown in the figure below. We click Update:

<figure><img src="https://1490959813-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FL6WLuERAo9yq6f5Anerv%2Fuploads%2FKUsN1cVdCSmHolgBPV3k%2FWX20240530-181200%402x.png?alt=media&amp;token=23c5c9bf-54e8-4587-8d24-f6bd17972235" alt=""><figcaption></figcaption></figure>

Finally, return to the script configuration window and enter @\[metamask\_account\_1]\(metamask\_account\_1) in the wallet input box, which is the first wallet address. The input will be automatically recognized as a gray background in the reference format:

<figure><img src="https://1490959813-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FL6WLuERAo9yq6f5Anerv%2Fuploads%2FcDTPv58uXN9TC3qYmnmg%2FWX20240530-181346%402x.png?alt=media&amp;token=947582d6-e68e-4955-8ed4-e809d3b57d65" alt=""><figcaption></figcaption></figure>

Finally, click Update and Save, then Run. You can see that the window we bound automatically helps us complete the function of receiving the test token to the first address of the wallet.


# Debugging

### Overview

{% hint style="info" %}
This part of the content requires some front-end knowledge. Ordinary users can skip the content they don't understand.
{% endhint %}

The most common error we encounter when recording scripts is that we cannot find an element in a web page. At this time, we need to verify it in the console. Each step of the script contains one or more selectors, selector or XPath. BrowTo will search for these selectors in turn. If the first search fails, it will continue to search for the second one. If all selectors are not found, the execution will fail and an error of not finding a certain element will be thrown.

When the execution fails, we can view the log information in the history of the task page. For the records of failed execution, we can see the screenshot information of the failure site, for example:

<figure><img src="https://1490959813-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FL6WLuERAo9yq6f5Anerv%2Fuploads%2FTv4mvS118XbXQdRrQtXH%2FWX20240530-181710%402x.png?alt=media&amp;token=91918f7b-8431-4b0c-8efc-258538c0e485" alt=""><figcaption></figcaption></figure>

The reason for the failure of this record is that the element was not found, resulting in a timeout (click the image to enlarge it). At this time, we have the following options:

1. Retry: Click the Retry button under the record to retry the script and window corresponding to the record.
2. Open: This operation will open the window corresponding to the record, and the user can manually check the reason or interact manually, and finally manually mark the record as successful.
3. Mark As Success: After manually resolving the problem, mark the record as successful.

If the task has a record of failed execution or non-execution, we have the following options:

1. Retry failed execution records: Click this button to package all failed execution records and retry them.
2. Retry Unexecuted: Click this button to retry all records that have not yet been executed, usually after manually stopping the task and later continuing execution.
3. Retry all failed records: Click this button to package all failed execution records and unexecuted records and retry them together.

{% hint style="info" %}
When we have bound many windows and the task has not been completed, we click the stop button in the task's operation options, and there will be remaining unexecuted records.
{% endhint %}

Another reason for not being able to find an element is that when you open the webpage for the first time, there is a pop-up window for confirming terms, but it will not appear when you open it later. You will definitely not be able to find the confirmation button in the pop-up window. How should we deal with this situation?

In the Edit Script Flow window, we can click the small black dot in front of the pop-up step to mark it as optional (click again to clear the status), as shown in the figure:

<figure><img src="https://1490959813-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FL6WLuERAo9yq6f5Anerv%2Fuploads%2FfSKdzMfiAFz6oj19Vak6%2FWX20240530-182156%402x.png?alt=media&amp;token=51960796-d973-48c2-8bc7-6fac5309b7a2" alt=""><figcaption></figcaption></figure>

In this way, when the system cannot find the selector corresponding to the step, it will automatically skip it and continue to execute the non-optional steps below.


# FAQ

> Why are some steps in my recorded script so slow when it is executed?

The reason for the slowness is that one or more selectors before this step are not found. At this time, the system will continue to search for the remaining selectors. At this time, you can delete the selectors that have been confirmed invalid before this step in the script to optimize and improve the script execution speed.

> Why can't I connect to the Windows Google browser even though I configure it according to the prompts?

Please make sure that it is double-click the shortcut to open Google, if it is correct, there is also a possibility that your local network problem is caused, if you open VPN service, please close and try again.

> The speed of my proxy IP is unstable, and it often times out before the webpage is opened or the operation is completed?

You can increase the timeout period in Settings-System Settings, for example, set it to 60.

> Why does my script succeed in some windows but not in others?

This situation is mostly caused by the inconsistency of the system languages ​​of these browser windows, which causes some selectors to be missing. It is recommended to change all antidetect browser windows to a unified language, such as English.

> My antidetect browser is connected, but the query keeps failing when selecting the window?

This is most likely caused by your VPN global proxy. Please close it first and try again to see if it succeeds. Finally, open it again and try again to see if it succeeds.

> Some browser windows suddenly cannot be opened, but they were working fine before?

It is likely that you modified the group or performed other editing operations in the antidetect browser, resulting in the global or script configuration being lost.

> Can I type in other applications while the script is running automatically?

It works when there is no input operation in the script, but it doesn't work when there is input operation. You can only grab the focus (i.e. click other applications to the foreground to view), otherwise the script will fail due to incorrect input.

> When I was performing a task, I clicked Pause on the task interface, but it did not pause?

It's not that there is no pause, but it is in the process of pause. Because each script is composed of steps, when the pause is triggered, the current step may have just started or is being executed. You need to wait for this step to be completed and complete the pause operation before the next step starts. Please wait patiently.

> What should I do if there is robot verification when operating a web page?

You can configure 2Captcha API Key in Settings--System Settings. After configuration, you can automatically solve robot verification (currently only supports Cloudflare, and more are being supported).

> What happens if a scheduled task fails?

Please go to the task interface to check the reason. It may be that the computer screen is turned off, there may be a task being executed at the beginning, the BrowTo client may not be opened, etc.

> How can I set a random number within a certain range?

When setting local configuration items, select Random Number as the Type:

<figure><img src="https://1490959813-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FL6WLuERAo9yq6f5Anerv%2Fuploads%2FoaSil65HaKE1NaWF666J%2FWX20240530-182758%402x.png?alt=media&amp;token=37ee94b4-fa05-493d-83a4-da47785a1a8f" alt=""><figcaption></figcaption></figure>

Then enter the starting and ending range during configuration. The number of decimal places retained in the final random number depends on the maximum number of decimal places of the starting and ending numbers. For example, if it is 1 to 5.88, the result may be 3.75, and if it is 2 to 9, the result may be 5.

<figure><img src="https://1490959813-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FL6WLuERAo9yq6f5Anerv%2Fuploads%2F5di2FUX2Q7DdIuIJ2tOz%2FWX20240530-182949%402x.png?alt=media&amp;token=e93ffa13-0b6d-4c1c-b672-a0513bb02b5f" alt=""><figcaption></figcaption></figure>

> What is the order in which the bound windows are executed?

The order is random, and the set number of concurrent windows is always kept open for execution. For example, if there are three concurrent windows, when one of the windows is completed first, a new window will be opened immediately to continue execution.


# 欢迎使用指纹猎手

## 概览

指纹猎手（BrowTo：Browser和Auto的融合）是一款在常见指纹浏览器以及谷歌浏览器上全自动运行脚本的效率提升助手，是自动化浏览器的终极武器。

<figure><img src="https://1324503434-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FizCrWTOIQPDq1GrYEky8%2Fuploads%2FP3XL1axmn5L7174SNrl2%2FWX20240308-235847%402x.png?alt=media&amp;token=3608619c-3180-4c88-9a40-99ed0d1a2e7a" alt=""><figcaption></figcaption></figure>

## 快速前往入门

{% content-ref url="/pages/BLYbeqpU054xoL8LbU2H" %}
[使用流程](/zhong-wen/ru-men/shi-yong-liu-cheng)
{% endcontent-ref %}

{% content-ref url="/pages/XIzP8PSwXZKot3RYyLPb" %}
[录制脚本](/zhong-wen/ru-men/lu-zhi-jiao-ben)
{% endcontent-ref %}

{% content-ref url="/pages/tRUlWDU0YxQ7Hb8ucnjJ" %}
[工作流](/zhong-wen/ru-men/gong-zuo-liu)
{% endcontent-ref %}

## 快速前往进阶

{% content-ref url="/pages/OSJHvucKJfZoLUaEavZ7" %}
[自动化插件](/zhong-wen/jin-jie/zi-dong-hua-cha-jian)
{% endcontent-ref %}

{% content-ref url="/pages/MDaCuavmtt1rjd0yC6aP" %}
[插件常量](/zhong-wen/jin-jie/cha-jian-chang-liang)
{% endcontent-ref %}

## 快速前往高阶

{% content-ref url="/pages/kdCplwvnSluZyopS8pum" %}
[调试](/zhong-wen/gao-jie/tiao-shi)
{% endcontent-ref %}

{% content-ref url="/pages/tHUAbsYHorJcUE8R1eOY" %}
[常见问题](/zhong-wen/gao-jie/chang-jian-wen-ti)
{% endcontent-ref %}


# 使用流程

### 概览

当注册并登录成功后，首先看到的是我们的主页面：

<figure><img src="https://1324503434-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FizCrWTOIQPDq1GrYEky8%2Fuploads%2FP3XL1axmn5L7174SNrl2%2FWX20240308-235847%402x.png?alt=media&amp;token=3608619c-3180-4c88-9a40-99ed0d1a2e7a" alt=""><figcaption></figcaption></figure>

能看到顶部有[连接浏览器](#di-yi-bu-lian-jie-liu-lan-qi)以及四个分栏页：主页、任务、脚本市场和设置，以及右侧的白天/黑夜主题切换按钮和个人信息弹窗按钮，当前默认选中主页，主页有脚本以及工作流两个分栏，默认选中脚本，左侧可以选择脚本的分类，右边则是筛选后的脚本列表，同时可以对这些脚本进行搜索和排序。

### 第一步：连接浏览器

点击左上角连接浏览器，则会弹出浏览器选择弹窗：

<figure><img src="https://1324503434-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FizCrWTOIQPDq1GrYEky8%2Fuploads%2FclwhiqtNSJ5WfpB0M2EZ%2FWX20240309-002758%402x.png?alt=media&amp;token=c85f6d3b-b9be-42a6-98eb-9199801681ab" alt=""><figcaption></figcaption></figure>

#### 连接指纹浏览器

可以看到，有独立的谷歌浏览器和三款最常用的指纹浏览器（AdsPower和比特浏览器以及MoreLogin指纹浏览器），弹出时会默认点亮已经开启的指纹浏览器客户端，并且需要该客户端已经开启了API功能以及默认的API端口（AdsPower API功能需要付费，默认端口50325，比特浏览器不需要，默认端口54345，MoreLogin限时体验，默认端口40000），如果还没有开启指纹浏览器，则需要打开后点击检查指纹浏览器连接按钮进行刷新，接下来点击任意已经点亮的客户端则可以正常连接。

#### 连接谷歌浏览器

无论是MacOS还是Windows操作系统，如果已经打开了Chrome浏览器，请先彻底退出（MacOS：Cmd+Q）Chrome浏览器，然后再点击指纹猎手中点亮的Chrome图标，等待指纹猎手自动打开Chrome，打开后则自动连接成功。

### 第二步：下载脚本

点击主页的下载脚本按钮，或者顶部的脚本市场按钮，进入脚本市场页面：

<figure><img src="https://1324503434-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FizCrWTOIQPDq1GrYEky8%2Fuploads%2FMpCgaqT0oDPWe3XCs4VP%2FWX20240309-112321%402x.png?alt=media&amp;token=21ea9603-c988-4928-b25e-cc4183e5aae1" alt=""><figcaption></figcaption></figure>

点击谷歌搜索脚本右上方的小云朵图标进行快捷下载，或者点击脚本在弹窗详情中点击下载：

<figure><img src="https://1324503434-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FizCrWTOIQPDq1GrYEky8%2Fuploads%2F1IxyzUs684WjH0ZtMLh7%2FWX20240309-112758%402x.png?alt=media&amp;token=a42e604f-58f7-44e0-b0ea-d03712d9e35b" alt=""><figcaption></figcaption></figure>

### 第三步：配置脚本（可选）

点击下载后根据引导返回主页，即可在页面看到脚本列表的谷歌搜索脚本：

<figure><img src="https://1324503434-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FizCrWTOIQPDq1GrYEky8%2Fuploads%2FwoeR85Dbq7wlbGyaBnJL%2FWX20240309-114059%402x.png?alt=media&amp;token=19bc4e75-a250-46c7-82b1-d7f9d798e492" alt=""><figcaption></figcaption></figure>

在配置之前，我们可以在菜单中点击查看可以查看该脚本的执行流程和源码：

<figure><img src="https://1324503434-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FizCrWTOIQPDq1GrYEky8%2Fuploads%2FFQlT2mndLtj5vYo8TbSv%2FWX20240309-121802%402x.png?alt=media&amp;token=6c46d110-b3b5-489d-8821-735ac9179a5e" alt=""><figcaption></figcaption></figure>

点击源码可以对脚本源码进行查看：

<figure><img src="https://1324503434-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FizCrWTOIQPDq1GrYEky8%2Fuploads%2F702vFCDhmK3VzLLXf2Rp%2FWX20240309-121855%402x.png?alt=media&amp;token=36501408-51bd-48f6-bb93-5e54b9f826ed" alt=""><figcaption></figcaption></figure>

此脚本需要我们对搜索内容进行配置，点击快捷配置按钮或者点击菜单中的配置按钮，对脚本进行配置：

<figure><img src="https://1324503434-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FizCrWTOIQPDq1GrYEky8%2Fuploads%2FL9fbLSbCB5V3fE9f4VdD%2FWX20240309-114247%402x.png?alt=media&amp;token=70e23c5b-57c1-4209-adb3-e5810054c755" alt=""><figcaption></figcaption></figure>

点击添加窗口按钮，在弹窗中选择要运行此脚本的指纹浏览器窗口（独立谷歌浏览器无需配置）：

<figure><img src="https://1324503434-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FizCrWTOIQPDq1GrYEky8%2Fuploads%2FMLHZpJTlPRLu990DB6jk%2FWX20240309-114802%402x.png?alt=media&amp;token=be4d328c-5961-4c65-879d-9d6bfb0e96ed" alt=""><figcaption></figcaption></figure>

选中并保存后，设置窗口并发数（同时运行的最大浏览器窗口数量），此刻我们只绑定了一个窗口，设置1即可，接下来配置好搜索内容：ETH（或者你希望搜索的内容），点击保存。

### 第四步：运行脚本

<figure><img src="https://1324503434-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FizCrWTOIQPDq1GrYEky8%2Fuploads%2FMw3j5gSoeQtovAd4sgSV%2FWX20240309-115248%402x.png?alt=media&amp;token=d7b8a15c-4815-4e92-a9dd-aecb6d60e877" alt=""><figcaption></figcaption></figure>

点击运行脚本快捷按钮，或者在弹出的详情中点击运行按钮，则会在选择的指纹浏览器窗口立即运行该脚本。

当任务执行完成后，会自动退出指纹浏览器窗口，然后根据引导前往任务页面：

<figure><img src="https://1324503434-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FizCrWTOIQPDq1GrYEky8%2Fuploads%2FJs8qjJ3zl8ZmwNpYZpgM%2FWX20240309-115803%402x.png?alt=media&amp;token=29176469-ee2a-4d6f-a394-8f4caf751326" alt=""><figcaption></figcaption></figure>

可以看到我们执行的脚本记录，状态为成功，点击操作中的日志信息按钮，则可以查看详细的日志记录：

<figure><img src="https://1324503434-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FizCrWTOIQPDq1GrYEky8%2Fuploads%2FLxappzpRolBauqtDJDRt%2FWX20240309-120357%402x.png?alt=media&amp;token=13c1760d-572c-4298-baf4-28dd70c370b2" alt=""><figcaption></figcaption></figure>


# 录制脚本

### 概览

脚本市场中的脚本是远远不能满足个人需求的，因此我们需要录制自己的脚本进行导入。

录制专属于自己的脚本几乎不需要代码知识（当然有的话会更加轻车熟路），且通常一个脚本只需要不到10分钟即可完成，接下来大家跟着我的步骤一步步操作，来录制一个简单的脚本。

### 第一步：认识录制器

打开安装的谷歌浏览器，我们前往<https://www.douban.com/>，同时我们的脚本需求是找到2010年代评分最好的科幻电影。

在豆瓣首页点击右键，选择最后一项**Inspect（检查）** ，然后会打开谷歌浏览器的开发者工具，开发者工具会默认打开 **Elements** 面板，然后根据下图从上到下依次选择**更多选项、更多工具、录制器**：

<figure><img src="https://1324503434-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FizCrWTOIQPDq1GrYEky8%2Fuploads%2Fu4jNEpw4mpwrlPWP3C6z%2FWX20240309-135734%402x.png?alt=media&amp;token=958b07bc-a76b-461b-84ed-74dc5a5db270" alt=""><figcaption></figcaption></figure>

在打开的录制器工具中，我们点击新建录制：

<figure><img src="https://1324503434-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FizCrWTOIQPDq1GrYEky8%2Fuploads%2FWGuul5vuyOWTJnPn4ZbT%2FWX20240309-140604%402x.png?alt=media&amp;token=3c6c51e3-8e2b-455c-9854-4c89d3d67683" alt=""><figcaption></figcaption></figure>

脚本名称我们填写豆瓣查询测试，然后点击开始录制：

<figure><img src="https://1324503434-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FizCrWTOIQPDq1GrYEky8%2Fuploads%2F0WRJoizhdfdKYdLipVag%2FWX20240309-140717%402x.png?alt=media&amp;token=a330ea41-9734-41c4-8299-9873fc8a1aa9" alt=""><figcaption></figcaption></figure>

接下来我们依次根据下列图示进行点击（选电影->类型（科幻）->年代（2010年代））：

<figure><img src="https://1324503434-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FizCrWTOIQPDq1GrYEky8%2Fuploads%2Fxxx72Ob7xZo8zAi5CDDC%2FWX20240309-140834%402x.png?alt=media&amp;token=372dc11a-3f95-42e2-b13c-5a2298ea384c" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1324503434-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FizCrWTOIQPDq1GrYEky8%2Fuploads%2F9ncNGKZv0ZAeeA7dKZIF%2FWX20240309-140903%402x.png?alt=media&amp;token=c7b487a3-3f87-4d6c-a802-5a1857202121" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1324503434-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FizCrWTOIQPDq1GrYEky8%2Fuploads%2FYsaaNK5Vv0WaqHk4b3iV%2FWX20240309-140927%402x.png?alt=media&amp;token=ae2d42bf-7207-4735-bd7f-2a5c0dc71200" alt=""><figcaption></figcaption></figure>

最后在开发者工具点击结束录制即可：

<figure><img src="https://1324503434-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FizCrWTOIQPDq1GrYEky8%2Fuploads%2FkEz6qpUiP44PUHcajbuM%2FWX20240309-141010%402x.png?alt=media&amp;token=12f37b45-e46d-40e0-a677-715de83c103a" alt=""><figcaption></figcaption></figure>

不到五分钟，我们就完成了我们的第一个自己的专属脚本，接下来我们就先来试试脚本能否正常工作吧！点击重放按钮：

<figure><img src="https://1324503434-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FizCrWTOIQPDq1GrYEky8%2Fuploads%2FN8EHTzrBJoQP4hx4T4dj%2FWX20240309-141423%402x.png?alt=media&amp;token=195f0457-6b1b-4094-b4b9-26450551e6e3" alt=""><figcaption></figcaption></figure>

如果没有意外的话，可以看见谷歌浏览器帮我们自动完成了刚才的一系列操作。

### 第二步：导入指纹猎手

在谷歌浏览器工作没问题之后，我们选择导出，一次选择导出->JSON格式，然后保存到电脑：

<figure><img src="https://1324503434-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FizCrWTOIQPDq1GrYEky8%2Fuploads%2FHASXwMKbUKjchjc8sIsH%2FWX20240309-141940%402x.png?alt=media&amp;token=06e0d62d-1f45-4de9-8279-c2d1262578a0" alt=""><figcaption></figcaption></figure>

然后打开我们的指纹猎手，在主页下载脚本右侧点击箭头，导入脚本，选择刚才导出的脚本并确定导入：

<figure><img src="https://1324503434-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FizCrWTOIQPDq1GrYEky8%2Fuploads%2F0zkwmQgLWesYX67JnQaN%2FWX20240309-142147%402x.png?alt=media&amp;token=84258506-6420-4c47-bf49-9fe5dca93425" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1324503434-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FizCrWTOIQPDq1GrYEky8%2Fuploads%2FunV6hDDksp8uRrYg3SW1%2FWX20240309-142246%402x.png?alt=media&amp;token=f862bd3f-13c5-47d2-a73b-9b68cb770a2b" alt=""><figcaption></figcaption></figure>

导入后会自动打开脚本编辑流程页面，我们填写描述：查找2010年代最好的科幻电影，然后点击确定：

<figure><img src="https://1324503434-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FizCrWTOIQPDq1GrYEky8%2Fuploads%2FABHJhFzYgf00tNBnz6T7%2FWX20240309-142450%402x.png?alt=media&amp;token=71e1dd5d-7dfe-4bdf-b79f-96e40c7fd79c" alt=""><figcaption></figcaption></figure>

然后根据引导前往分类->本地导入，即可看到我们刚刚导入的豆瓣查询测试脚本，我们发现还需要再次配置窗口和并发数，为了防止我们每次都要对脚本进行配置窗口和并发数，我们先前往设置，点击指纹猎手顶部设置菜单：

<figure><img src="https://1324503434-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FizCrWTOIQPDq1GrYEky8%2Fuploads%2F0QO25cZ9lnLA6q2mQcL4%2FWX20240309-142730%402x.png?alt=media&amp;token=b8e514b4-1640-467e-810f-a0e3e5393fe5" alt=""><figcaption></figcaption></figure>

我们对当前选择的指纹浏览器进行全局配置，配置好绑定的窗口和并发数后，点击最下方的更新配置即可。然后回到主页，找到刚才导入的脚本，已经变成了可直接运行的状态，点击运行即可在指定窗口自动运行。

最后，你可以前往<https://developer.chrome.com/docs/devtools/recorder?hl=zh-cn>关于录制器的说明与技巧。


# 工作流

### 概览

工作流可以使多个脚本之前关联执行，当然也可以乱序执行，当我们在多个脚本有前后关系的时候非常实用，接下来我们利用上一章我们自己录制的豆瓣脚本来学习一下。

### 第一步：编辑脚本

找到我们之前导入的豆瓣脚本，单击更多菜单，然后点击编辑：

<figure><img src="https://1324503434-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FizCrWTOIQPDq1GrYEky8%2Fuploads%2FvqO77A9YnFyZ68ixxdgY%2FWX20240309-144522%402x.png?alt=media&amp;token=5061adca-a9bf-43c1-83d7-1bb11dcfc0bf" alt=""><figcaption></figcaption></figure>

在弹出框流程中点击展开**点击“2010年代”**&#x6309;钮，可以看到我们能为此操作增加一些效果，我们先点击添加浏览步骤，在单词滑动后浏览秒数输入框中输入5，然后点击添加：

<figure><img src="https://1324503434-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FizCrWTOIQPDq1GrYEky8%2Fuploads%2FWm0AZHHF0AjEdSJH0ZHU%2FWX20240309-205846%402x.png?alt=media&amp;token=156696b6-b822-4eb8-9f27-54c38f287eec" alt=""><figcaption></figcaption></figure>

此步骤的意思是点击完2010年代后，等待5秒钟，让网页完成分类工作，展示最新列表，接着我们点击绑定输出变量：

<figure><img src="https://1324503434-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FizCrWTOIQPDq1GrYEky8%2Fuploads%2FPWm6EUoE9wKrJTpFL1A0%2FWX20240309-145407%402x.png?alt=media&amp;token=38a154b7-977f-4a2b-b8c9-62a71255c670" alt=""><figcaption></figcaption></figure>

这步操作的意思是我们要在页面点击完成2010年代后，在当前页面提取一些我们需要的网页文本内容以供其他脚本使用，该范例中，我们需要得到该电影的名称，我们在弹框中填入变量名称为电影名称，选择器我们将在第二步填入。

### 第二步：查找选择器

在这个编辑脚本流程的步骤中，如果你需要输出变量（即上个步骤）和设置为列表批量操作，就需要对选择器有所了解，我们回到谷歌浏览器，在选择完成的电影列表中找到第一项：星际穿越，在星级穿越标题上方点击右键，**Inspect（检查）**&#x6765;到我们前面熟悉的开发者工具：

<figure><img src="https://1324503434-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FizCrWTOIQPDq1GrYEky8%2Fuploads%2FR0J3DoQvfupAdqmQe2yQ%2FWX20240309-145929%402x.png?alt=media&amp;token=5271cef0-f8f7-4304-ade1-2e598a5fe2fb" alt=""><figcaption></figcaption></figure>

将鼠标放在默认选择的HTML内容（上图右方）上，看左侧页面想要的内容即星际穿越四个字是否高亮，如果没有，可以点击开发者工具的选择元素按钮（**Elements**左侧第一个按钮），然后点击星际穿越，即可默认选中HTML元素。

接下来在选择的HTML元素上右键，选择Copy（复制）->Copy selector（复制选择器）即可。

然后我们回到指纹猎手，在选择器输入框中粘贴刚才的选择器，然后添加，可以看到我们对当前点击添加了两个操作：

<figure><img src="https://1324503434-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FizCrWTOIQPDq1GrYEky8%2Fuploads%2FQVuss8QW7isUGc2HA62i%2FWX20240309-211450%402x.png?alt=media&amp;token=b3d161fd-f260-474a-a478-a4709abf358b" alt=""><figcaption></figcaption></figure>

最后确认更新编辑流程。

### 第三步：新建工作流

我们点击工作流选项卡，点击右侧的添加工作流，在弹窗中名称处填写工作流测试，然后点击添加脚本：

<figure><img src="https://1324503434-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FizCrWTOIQPDq1GrYEky8%2Fuploads%2Fg6IhkTZzygr4ww59Dr3t%2FWX20240309-151926%402x.png?alt=media&amp;token=95a5bd89-defc-4bb5-b002-3139d1b06f4b" alt=""><figcaption></figcaption></figure>

在脚本添加弹窗中，先选择豆瓣查询测试脚本，再选择谷歌搜索脚本（选择顺序决定了后续的输入变量引用，顺序执行模式下后选择的脚本可以引用前方选择的脚本）：

<figure><img src="https://1324503434-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FizCrWTOIQPDq1GrYEky8%2Fuploads%2F5QxMgYSLRzxjx2YCIsoY%2FWX20240309-152011%402x.png?alt=media&amp;token=22e79060-8cba-41d9-b90a-62c7d84d8595" alt=""><figcaption></figcaption></figure>

然后返回，将鼠标放在谷歌搜索脚本上悬浮，可以看见弹窗提示有可选输入配置：

<figure><img src="https://1324503434-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FizCrWTOIQPDq1GrYEky8%2Fuploads%2FOPpKQFHXtJzHnoJ1OcEu%2FWX20240309-152217%402x.png?alt=media&amp;token=48908df3-5443-4757-aa87-53f9b78bb8cc" alt=""><figcaption></figcaption></figure>

我们点击修改输入配置，在弹窗中将默认的搜索内容进行修改，我们先输入@符号对前方脚本（即豆瓣脚本）的输出内容进行引用，然后再追加在线观看：

<figure><img src="https://1324503434-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FizCrWTOIQPDq1GrYEky8%2Fuploads%2FxDw0FQujIAC0bPEQfGUW%2FWX20240309-152456%402x.png?alt=media&amp;token=128b58e7-991d-47f9-9b76-377aa5fcdfa4" alt=""><figcaption></figcaption></figure>

最后点击更新，设置好绑定的窗口和并发数，默认保持顺序执行，点击添加。

最后点击脚本运行快捷方式，即可看到在指定窗口依次运行了两个脚本，最后在谷歌中搜索了星际穿越 在线观看的结果。


# 自动化插件

### 概览

目前指纹猎手完全支持MetaMask小狐狸插件和部分支持Keplr插件，后续会支持更多例如Phantom、ArgentX插件等，或者任意插件自动化。

### 第一步：配置插件ID

首先我们打开连接的指纹浏览器任意窗口，在地址栏输入并前往**chrome://extensions/**，可以看到当前浏览器安装的所有插件（如何在指纹浏览器安装插件在此略过），然后打开右上角的开发者模式，可以看到插件的ID：

<figure><img src="https://1324503434-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FizCrWTOIQPDq1GrYEky8%2Fuploads%2F2gdMdZfvnS3Vkc1iZGBl%2FWX20240309-220726%402x.png?alt=media&amp;token=8861b41f-ed2a-4bb6-85a1-07b685a63367" alt=""><figcaption></figcaption></figure>

复制该ID，然后前往指纹猎手设置，全局配置，对MetaMask插件ID进行配置，如果一样则无需配置（手动添加的插件，会与Chrome插件市场的ID不一致，试验下来AdsPower不一致，比特浏览器一致），然后顺带对MetaMask解锁密码进行配置（注：所有的单个脚本配置以及全局配置都保存在本地，不会进行云端存储）。

### 第二步：测试脚本

前往脚本市场，下载**MetaMask添加指定网络**插件，然后回到对该脚本进行配置，可以看到，由于我们全局配置了窗口、并发数和MetaMask解锁密码，所有我们只剩下网络名称还未配置，我们在网络名称中填写Polygon Mainnet （或者其他你的MetaMask还没有添加的网络）：

<figure><img src="https://1324503434-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FizCrWTOIQPDq1GrYEky8%2Fuploads%2FV73qnxOHlAEE6Z0biAad%2FWX20240309-221754%402x.png?alt=media&amp;token=31c24334-93c6-4a7b-b22c-3cda5ca637d3" alt=""><figcaption></figcaption></figure>

然后点击更新保存，再点击运行按钮，可以看到该浏览器上安装的小狐狸插件自动帮我们添加了Polygon主网网络。

这是怎么完成的呢？我们点击脚本更多菜单，选择查看，可以看到脚本流程我们添加了三步操作：

<figure><img src="https://1324503434-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FizCrWTOIQPDq1GrYEky8%2Fuploads%2Fk3qjhWlQUXs8HC2X8UZp%2FWX20240309-222125%402x.png?alt=media&amp;token=37b823f9-e274-4d52-9f6d-848c7b03d46a" alt=""><figcaption></figcaption></figure>

我们首先在网页中点击Connect Wallet的时候，为该点击操作添加了连接钱包操作，然后在网页输入框输入网络的时候把输入设置成了本地配置，即动态的网络名称，类型为文本/数字，最后在网页点击Add to Metamask（即添加网络到小狐狸）的时候，增加了小狐狸的签名操作，最后脚本完成所有流程。


# 插件常量

### 概览

在入门的[工作流](/zhong-wen/ru-men/gong-zuo-liu)一章中我们已经学习过了输出变量（电影名称）的引用，另外我们在交互各类网页的时候，不免会遇到输入钱包地址和代币数量的时候，指纹猎手提供了以下系统常量供输入进行配置：

{% hint style="info" %}
常量在引用的时候需要输入&#x4E3A;**@\[常量名]\(常量名)**，方便与普通输入进行区分，即引用metamask\_account需要输&#x5165;**@\[metamask\_account]\(metamask\_account)**
{% endhint %}

#### 地址

* metamask\_account：当前钱包地址
* metamask\_account\_1：第一个钱包地址
* metamask\_account\_2：第二个钱包地址
* 以此类推

#### 余额

* metamask\_balance\_1：当前网络代币余额的一成（即10%）
* metamask\_balance\_2：当前网络代币余额的两成（即20%）
* 以此类推到10即metamask\_balance和metamask\_balance\_10都表示所有代币余额

{% hint style="info" %}
注意：在引用以上变量的时候，需要先解锁或者连接钱包了才能正常引用
{% endhint %}

### 测试

接下来我们来完成一个Holesky测试网自动领水的脚本，打开谷歌浏览器前往<https://faucet.triangleplatform.com/ethereum/holesky>，然后右键Inspect找到录制器点击开始录制（详细步骤前往入门部分的[录制脚本](/zhong-wen/ru-men/lu-zhi-jiao-ben)），然后依次点击网页输入框，粘贴你的钱包地址，然后点击Request 0.001ETH，等待提示成功：

<figure><img src="https://1324503434-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FizCrWTOIQPDq1GrYEky8%2Fuploads%2FnRWCm1OE2xVY4JQ8GdYk%2FWX20240309-225853%402x.png?alt=media&amp;token=4c551c67-af9d-4332-80ce-9fa6bb518027" alt=""><figcaption></figcaption></figure>

为了防止录制一些不必要的操作，我们先停止录制，如果发现录制了不必要的操作，可以点击当前步骤的更多菜单中的删除按钮。

通常我们在录制脚本的时候，为了知晓脚本是否执行成功，都会在最后添加一步，即等待成功的标识出现，对于该脚本，则是需要等待Success或者交易的Tx出现，所以我们在录制器的最后一步的菜单中选择在后面添加一步：

<figure><img src="https://1324503434-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FizCrWTOIQPDq1GrYEky8%2Fuploads%2F21r5EMPiGaGFGXDWiH14%2FWX20240309-230243%402x.png?alt=media&amp;token=87252a48-c0fb-4bc0-8845-39fde32c9a42" alt=""><figcaption></figcaption></figure>

type保持默认的waitForElement，然后点击selectors右边的选择按钮，再选择网页中的Success文字，这时录制器中的selectors会自动填充：

<figure><img src="https://1324503434-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FizCrWTOIQPDq1GrYEky8%2Fuploads%2FvFO8gTzXGuh4HPXjS9dw%2FWX20240309-230534%402x.png?alt=media&amp;token=76ca0904-ce0d-4e58-b76c-5865071e833e" alt=""><figcaption></figcaption></figure>

接着我们保存该脚本为JSON文件，导入到指纹猎手，开始对该脚本进行配置，首先我们引用钱包地址需要对钱包进行解锁，所以我们展开第一步网页地址，选择绑定插件操作中的MetaMask解锁钱包：

<figure><img src="https://1324503434-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FizCrWTOIQPDq1GrYEky8%2Fuploads%2FkrnmAgfDlC6iPT1K7keR%2FWX20240309-230938%402x.png?alt=media&amp;token=3fb4c0d8-55d0-4411-ae9c-b1ba0102ff5c" alt=""><figcaption></figcaption></figure>

接下来在输入钱包地址步骤中展开，点击设置为本地配置项，配置好名称为wallet，类型为文本/数字：

<figure><img src="https://1324503434-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FizCrWTOIQPDq1GrYEky8%2Fuploads%2Fd98ZvCMjKYNqjYGQSH1V%2FWX20240309-231124%402x.png?alt=media&amp;token=b45a437b-1b16-4d24-9ee5-5525f97eb661" alt=""><figcaption></figcaption></figure>

最后的结果如下图所示，我们点击更新：

<figure><img src="https://1324503434-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FizCrWTOIQPDq1GrYEky8%2Fuploads%2Flr8L0fwLVrdnYkqyZS0G%2FWX20240309-230859%402x.png?alt=media&amp;token=3e7ebbb2-069f-4f59-a4c3-301a549551fc" alt=""><figcaption></figcaption></figure>

最后回到脚本配置窗口，在wallet输入框中输入@\[metamask\_account\_1]\(metamask\_account\_1)，即第一个钱包地址，输入会自动识别为引用格式的灰色背景：

<figure><img src="https://1324503434-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FizCrWTOIQPDq1GrYEky8%2Fuploads%2FteCicRf2KBYk4xA7KlJe%2FWX20240309-231436%402x.png?alt=media&amp;token=7a1987be-7984-4e06-b739-51f8d5733d13" alt=""><figcaption></figcaption></figure>

最后点击更新保存，然后运行，可以看见我们绑定的窗口自动帮我们完成了领测试代币到钱包第一个地址的功能。


# 调试

### 概览

{% hint style="info" %}
这部分内容需要部分前端知识，普通用户对于看不懂的内容可以略过
{% endhint %}

在我们录制脚本的时候最常遇到的错误就是找不到某个网页中的元素，这时我们需要在控制台进行验证，在脚本的每个步骤中都包含一个或多个选择器，selector或者XPath，指纹猎手会依次对这些选择器进行查找，如果第一个查找失败，这会继续查找第二个，如果所有选择器都没有找到，则会执行失败，抛出找不到某个元素的错误。

当执行失败的时候，我们可以在任务页面的历史记录中对日志信息进行查看，对于执行失败的记录，可以看到失败现场的截图信息，例如：

<figure><img src="https://1324503434-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FizCrWTOIQPDq1GrYEky8%2Fuploads%2F9ZEOlQK7mYP6t75IJjY3%2FWX20240309-235356%402x.png?alt=media&amp;token=ad4e1e7b-cefc-4dde-a214-c0d0d9ff438b" alt=""><figcaption></figcaption></figure>

该条记录失败原因为元素未找到导致超时（点击图片可以放大查看），这时我们可以有以下选择：

1. 重试：点击该条记录下的重试按钮，会针对该条记录对应的脚本和窗口进行重试操作。
2. 打开：该操作会打开该条记录对应的窗口，由用户自己手动检查原因或者手动交互，最后可以手动将该条记录标记为成功。

如果该任务有执行失败或者未执行的记录，我们有以下选择：

1. 重试执行失败记录：点击该按钮会将所有的执行失败记录进行打包重试。
2. 重试所有失败记录：点击该按钮可以将所有执行失败记录以及未执行的记录一并进行打包重试。

{% hint style="info" %}
当我们绑定的窗口较多，任务没有执行完成的时候，我们在任务的操作选项中点击了停止按钮，就会有剩余的未执行记录。
{% endhint %}

还有一种找不到元素的原因是第一次打开网页的时候有类似确认条款弹窗，以后打开都没有了，肯定会找不到弹框的确认按钮，这种情况我们该怎么处理呢？

我们可以在编辑脚本流程窗口中，点击该弹窗步骤前面的小黑点，将之标记为可选状态（再次点击可以清除状态），例如图示：

<figure><img src="https://1324503434-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FizCrWTOIQPDq1GrYEky8%2Fuploads%2FJTNVvQf1Aw3HxXCAqHLM%2FWX20240310-000854%402x.png?alt=media&amp;token=4e5320cf-0601-4656-b2f6-355e13349fed" alt=""><figcaption></figcaption></figure>

这样系统在找不到该步骤对应的selector时，会自动略过，继续执行下方非可选步骤。


# 常见问题

> 我录制的脚本执行的时候某些步骤特别慢怎么回事？

慢是因为这个步骤前面的一个或多个选择器selector没有找到，这时系统会继续查找剩余的selector，这时你可以删除脚本中该步骤前面确认无效的选择器，来优化提高脚本执行速度。

> 我的代理IP速度不稳定，经常网页还没打开或者操作没完成就超时了？

你可以在设置--系统设置中将超时时间提高，比如设置为60。

> 我的脚本有些窗口可以成功，有些窗口不成功怎么回事？

这种情况大部分原因可能是这些浏览器窗口的系统语言不一致，导致某些选择器找不到，建议将所有指纹浏览器窗口都改为统一语言，例如英文。

> 我的指纹浏览器连上了，但是选择窗口的时候一直查询失败？

这很可能是你的全局代理导致的，请先关闭再试一下看是否成功，最后再打开继续重试看是否成功。

> 某些浏览器窗口突然打不开了，之前都好好的？

应该是你在指纹浏览器修改了分组或者进行了其他编辑操作，导致全局或者脚本的配置找不到了。

> 自动运行脚本的时候，我可以在其他应用输入吗？

当脚本没有输入操作的时候可以，有输入操作则不行，你只能抢焦点（即点击其他应用到前台查看），否则会导致脚本输入不正确导致失败。

> 我执行任务的过程中，在任务界面点击了暂停，但是没有暂停？

不是没有暂停，是在暂停的过程中，因为每个脚本都是由一个个步骤组成，暂停触发的时候可能当前步骤刚刚开始或者正在执行中，需要等待这个步骤执行完成，在下一个步骤开始之前完成暂停操作，请耐心等待即可。

> 操作网页的时候有机器人验证，怎么办？

可以在设置--系统设置中配置2Captcha API Key，配置完成之后可以自动解决机器人验证（目前只支持Cloudflare，更多正在支持中）。

> 定时任务失败了怎么回事？

请前往任务界面查看原因，可能是电脑息屏了，可能是开始时有任务在执行，可能是未开启指纹猎手客户端等等情况。

> 我想设置某一个范围内的随机数怎么设置？

当设置本地配置项的时候，类型选择随机数字：

<figure><img src="https://1324503434-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FizCrWTOIQPDq1GrYEky8%2Fuploads%2FoOUm39LdMDxHo9DoRYaj%2FWX20240310-004237%402x.png?alt=media&amp;token=c8b1dcda-8551-4da3-9cee-374ed96fa75f" alt=""><figcaption></figcaption></figure>

然后在配置的时候输入起始和终止范围，最终随机数保留几位小数取决于起始和终止数字最大的小数位数，例如1到5.88，则结果可能为3.75，2到9，则结果可能为5。

<figure><img src="https://1324503434-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FizCrWTOIQPDq1GrYEky8%2Fuploads%2FZvNJfXKwwWvQl9ZoPROP%2FWX20240310-004614%402x.png?alt=media&amp;token=33f03164-a3de-4f5a-9c8a-d4fb336e38e6" alt=""><figcaption></figcaption></figure>

> 绑定的窗口执行的时候顺序是怎么样的？

是随机的顺序，然后始终保持设置的窗口并发数打开执行，例如并发三个窗口，当其中一个窗口先执行完成，则会立即打开一个新窗口继续执行。


