http://127.0.0.1:35000/api/v1/profile/sendKeys
Parameter | Required | Type | Description |
---|---|---|---|
profileId | Yes | string | Browser Profile ID |
value | Yes | string | Send a string ( Enter Escape Tab vkLeft vkUp vkRight vkDown vkDelete vkEnd vkHome vkBack ) to this web control |
elementId | no | string | elementId obtained after finding the element by findElement |
http://127.0.0.1:35000/api/v1/profile/sendKeys?profileId=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx&elementId=49e49e71-2a55-4e79-a41b-86840ffd18c8&value=5Lit5paHYWJjMTIz
elementId
acquisition example: 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\”}”}
In which, 49e49e71-2a55-4e79-a41b-86840ffd18c8 is the elementId to be used.
We Offer 3-Day Free Trial for All New Users
No Limitations in Features