http://127.0.0.1:35000/api/v1/profile/sendKeys| Parametro | Obbligatorio | Tipo | Descrizione< /th> |
|---|---|---|---|
| profileId | Sì | string | ID profilo browser |
| valore | Sì | stringa | Invia una stringa ( Invio Esc Tab vkLeft vkUp vkRight vkDown vkDelete vkEnd vkHome vkBack) a questo controllo web |
| elementId | no | string | elementId ottenuto dopo aver trovato l'elemento da 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: in primo luogo, puoi utilizzare findElementByID per trovare elementId, ad esempio:http://127.0.0.1:35000/api/v1/profile/findElement?profileId=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx&function=findElementByID&args=kw&click=false&index=-1
Puoi anche utilizzare findElementByXPath per trovare l'elementId, ad esempio:
http://127.0.0.1:35000/api/v1/profile/findElement?profileId=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx&function=findElementByXPath&args=Ly8qW0BpZD0ia3ciXQ==&click=false&index=-1
Il parametro args sopra viene trasmesso utilizzando la codifica base64, dopo la decodifica è: //*[@id=”kw”]
La precedente richiesta GET restituirà:
{"status":"OK","value":"{\"element-6066-11e4-a52e-4f735466cecf\":\"49e49e71-2a55-4e79-a41b-86840ffd18c8\"}"}
In cui 49e49e71-2a55-4e79-a41b-86840ffd18c8 è l'elementId da utilizzare.
Offriamo 3 giorni di prova gratuita per tutti i nuovi utenti
Nessuna limitazione nelle funzionalità
