• Getting Started
  • Browser Configuration
  • Proxy Setting
  • Advanced Setting
  • Video Tutorial
  • FAQ
  • API

local API normal setting

1. Refresh the page:

http://127.0.0.1:35000/api/v1/profile/refresh?profileId=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx

2. Open the customized website or URL.

http://127.0.0.1:35000/api/v1/profile/openurl?profileId=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx&url=www.lalicat.com

3. Get Page Source Code:

http://127.0.0.1:35000/api/v1/profile/source?profileId=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx

4. Find the elements of the page:

http://127.0.0.1:35000/api/v1/profile/findElement?profileId=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx&function=findElementByID&args=kw&click=false&index=-1

Function supported elements:

findElementByID

findElementByTag

findElementByClassName

findElementByLinkText

findElementByXPath

findElementsByID

findElementsByTag

findElementsByClassName

findElementsByLinkText

findElementsByXPath

args element is function parameters,such as:findElementByID(args).

When click is true,Click after finding the specified element. if false, not click.

when index is multiple elements, specify click which elements, just start from 0, -1 is one of the random elements, this parameter is used when click = true.

5. Get the specified element attribute value.

http://127.0.0.1:35000/api/v1/profile/getAttribute?profileId=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx&args=[{“ELEMENT”: “95365abe-6746-4703-8cfd-6316580f5289”, “element -6066-11e4-a52e-4f735466cecf”: “95365abe-6746-4703-8cfd-6316580f5289”}, “style”]

The args parameter is generally a JSON string combined with the Element_ID obtained after finding the element through findElement. For example: [{“ELEMENT”: “95365abe-6746-4703-8cfd-6316580f5289”, “element-6066-11e4-a52e-4f735466cecf”: “95365abe-6746-4703-8cfd-6316580f5289”}, “value”]

This is to take the value of the 95365abe-6746-4703-8cfd-6316580f5289 element.

6. Perform an element click via the selector:

http://127.0.0.1:35000/api/v1/profile/findElement?profileId=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx&function=findElementByID&args=kw&click=true&index=-1

7. Send text to web page:

First, you can use [findElementByID] to find the [elementId], for example:

http://127.0.0.1:35000/api/v1/profile/findElement?profileId=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx&function=findElementByID&args=kw&click=false&index=-1

You can also use: [findElementByXPath] to find the [elementId], for example:

http://127.0.0.1:35000/api/v1/profile/findElement?profileId=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx&function=findElementByXPath&args=Ly8qW0BpZD0ia3ciXQ==&click=false&index=-1

The above args parameter is transmitted using [base64] encoding, after decoding it is: //*[@id=”kw”]

The above GET request will return:

{"status":"OK","value":"{\"element-6066-11e4-a52e-4f735466cecf\":\"49e49e71-2a55-4e79-a41b-86840ffd18c8\"}"}

49e49e71-2a55-4e79-a41b-86840ffd18c8 is the elementId to be used.

http://127.0.0.1:35000/api/v1/profile/sendKeys?profileId=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx&elementId=49e49e71-2a55-4e79-a41b-86840ffd18c8&value=5Lit5paHYWJjMTIz

The above value is also transmitted using base64 encoding to prevent GET transmission from failing.

value=5Lit5paHYWJjMTIz, is to change the Chinese abc123 string sent in this web page control. Note that these automated operations cannot be performed until the web page is loaded, otherwise the actions may be blocked.

The 35000 port here is the port set in my account in the lalicat software, pay attention to opening and changing.

get free trial

We Offer 3-Day Free Trial for All New Users

No Limitations in Features

By clicking "accept", you agree to use Cookies to optimize the information presented to you, and analyze the traffic of our website.
If you want to opt out of our cookies, please read our Cookie Policy for your guidance.