API Send the File to the Webpage(Human Analog Input)

Send the file to the webpage using the API interface:

Request Url:

http://127.0.0.1:35000/api/v1/profile/sendKeys

Request Type: GET

NameTypeDescriptionrequired
profileIdstringBrowser profile IDtrue
elementIdstringThe elementId obtained by finding the element through findElementfalse
valuestringSend a string to this web control
(Enter Escape Tab vkLeft vkUp vkRight
vkDown vkDelete vkEnd vkHome vkBack)
true

Body
x-www-form-urlencoded

{
    "profileId": "17D40B01-566A-4E3F-888A-C40A404668B8",
    "value": "dm1sb2dpbg=="
}

The value needs to be transmitted in base64 to prevent GET transmission failure. If value="dm1sb2dpbg==" is decoded as "vmlogin", it is the web control that sends the "vmlogin" string.

Please note that the page must be loaded before these automated operations can be performed, otherwise, there is a chance that the action will be blocked.


Note:

(1) When using the Local Interface, you need to Enable browser automation settings on the VMLogin client and save the settings. Please refer to the tutorial "Launch the browser automation port";

(2) For profiled, please refer to the tutorial "Where is the profile ID" or use the profile/list interface to get all profileId;

(3) For elementId, please refer to the "Find Element" tutorial.