type | int | listtype,0 - all environment,1 - enableenvironment,2 - disableenvironment |
{ "type": 1 }
{ "success": true, "result": [ { "id": "1622109562686", "name": "cloud_test_3", "group": "TEST", "startUrl": "https://www.baidu.com/", "browserId": 1956, "currentUrl": "https://www.baidu.com/", "account": null, "browser": { "browserId": 1956, "httpDebugAddress": "127.0.0.1:44076", "wsDebugAddress": "ws://127.0.0.1:44076/devtools/browser/79f96865-4a8e-4b76-812a-0fa798dc1a53" } }, { "id": "1622109562675", "name": "cloud_test_2", "group": "TEST", "startUrl": "https://www.facebook.com/", "browserId": 22980, "currentUrl": "https://www.facebook.com/", "account": { "id": "1622519343036", "name": "myfacebookaccount", "password": "myfacebookpassword", "email": "", "phone": "", "cookie": "", "siteUrl": "https://www.facebook.com/" }, "browser": { "browserId": 22980, "httpDebugAddress": "127.0.0.1:63104", "wsDebugAddress": "ws://127.0.0.1:63104/devtools/browser/03f3c561-767a-4605-9439-c0aa7b68e347" } } ], "error": null, "browserNotFound": false }
environmentId | String | environmentId |
{ "environmentId": "1622109562686" }
{ "success": true, "result": { "browserId": 22980, "httpDebugAddress": "127.0.0.1:63104", "wsDebugAddress": "ws://127.0.0.1:63104/devtools/browser/03f3c561-767a-4605-9439-c0aa7b68e347" }, "error": null, "browserNotFound": false }
environmentId | String | environmentId |
browserId | int | browserId |
{"environmentId":"1622109562686","browserId":0} OR {"environmentId":null,"browserId":22980}
{ "success": true, "result": null, "error": null, "browserNotFound": false }
browserId | int | browserId |
url | String | URL to be load |
newTab | bool | open new tab |
timeout | int | timeout(seconds) |
{ "browserId": 22980, "url": "https://www.qq.com/", "newTab": true, "timeout": 30 }
{ "success": true, "result": null, "error": null, "browserNotFound": false }
browserId | int | browserId |
url | String | The first tab matched with the url |
lastTab | bool | switch to the last tab(true/false) |
{ "browserId": 22980, "url": "www.baidu.com", "lastTab": false }
{ "success": true, "result": null, "error": null, "browserNotFound": false }
browserId | int | browserId |
url | String | The first tab matched with the url |
closeOthers | bool | close all the tabs except the one matched(true/false) |
closeLastTab | bool | close the last tab(true/false) |
{ "browserId": 22980, "url": "www.baidu.com", "closeOthers": false, "closeLastTab": false }
{ "success": true, "result": null, "error": null, "browserNotFound": false }
cookie | String | cookie(json) |
{ "browserId": 22980, "cookie": "[{\"domain\":\".baidu.com\",\"expirationDate\":3770601752.373181,\"hostOnly\":false,\"httpOnly\":false,\"name\":\"BIDUPSID\",\"path\":\"/\",\"sameSite\":\"unspecified\",\"secure\":false,\"session\":false,\"storeId\":\"0\",\"value\":\"E12A9B3CE1E0C48F92F0E7D67493AF3B\"},{\"domain\":\".baidu.com\",\"expirationDate\":3770601752.3732,\"hostOnly\":false,\"httpOnly\":false,\"name\":\"PSTM\",\"path\":\"/\",\"sameSite\":\"unspecified\",\"secure\":false,\"session\":false,\"storeId\":\"0\",\"value\":\"1623118105\"},{\"domain\":\".baidu.com\",\"expirationDate\":1654654105.37321,\"hostOnly\":false,\"httpOnly\":false,\"name\":\"BAIDUID\",\"path\":\"/\",\"sameSite\":\"unspecified\",\"secure\":false,\"session\":false,\"storeId\":\"0\",\"value\":\"E12A9B3CE1E0C48FFB72E304558B28E5:FG=1\"},{\"domain\":\"www.baidu.com\",\"hostOnly\":true,\"httpOnly\":false,\"name\":\"BD_HOME\",\"path\":\"/\",\"sameSite\":\"unspecified\",\"secure\":false,\"session\":true,\"storeId\":\"0\",\"value\":\"1\"},{\"domain\":\".baidu.com\",\"hostOnly\":false,\"httpOnly\":false,\"name\":\"H_PS_PSSID\",\"path\":\"/\",\"sameSite\":\"unspecified\",\"secure\":false,\"session\":true,\"storeId\":\"0\",\"value\":\"31253_33848_33676_33607_26350_22159\"},{\"domain\":\".baidu.com\",\"expirationDate\":1654654106.343895,\"hostOnly\":false,\"httpOnly\":false,\"name\":\"BAIDUID_BFESS\",\"path\":\"/\",\"sameSite\":\"no_restriction\",\"secure\":true,\"session\":false,\"storeId\":\"0\",\"value\":\"E12A9B3CE1E0C48FFB72E304558B28E5:FG=1\"},{\"domain\":\"www.baidu.com\",\"expirationDate\":1623982105,\"hostOnly\":true,\"httpOnly\":false,\"name\":\"BD_UPN\",\"path\":\"/\",\"sameSite\":\"unspecified\",\"secure\":false,\"session\":false,\"storeId\":\"0\",\"value\":\"12314753\"},{\"domain\":\".baidu.com\",\"expirationDate\":1623121706,\"hostOnly\":false,\"httpOnly\":false,\"name\":\"BA_HECTOR\",\"path\":\"/\",\"sameSite\":\"unspecified\",\"secure\":false,\"session\":false,\"storeId\":\"0\",\"value\":\"2180ag840485al8hmh1gbtk8q0r\"}]" }
{ "success": true, "result": null, "error": null, "browserNotFound": false }
browserId | int | browserId |
url | String | the specified website address of the cookie to be obtained |
{ "browserId": 22980, "url": "https://www.baidu.com/" }
{ "success": true, "result": "[{\"domain\":\".baidu.com\",\"expirationDate\":3770601752.373181,\"hostOnly\":false,\"httpOnly\":false,\"name\":\"BIDUPSID\",\"path\":\"/\",\"sameSite\":\"unspecified\",\"secure\":false,\"session\":false,\"storeId\":\"0\",\"value\":\"E12A9B3CE1E0C48F92F0E7D67493AF3B\"},{\"domain\":\".baidu.com\",\"expirationDate\":3770601752.3732,\"hostOnly\":false,\"httpOnly\":false,\"name\":\"PSTM\",\"path\":\"/\",\"sameSite\":\"unspecified\",\"secure\":false,\"session\":false,\"storeId\":\"0\",\"value\":\"1623118105\"},{\"domain\":\".baidu.com\",\"expirationDate\":1654654105.37321,\"hostOnly\":false,\"httpOnly\":false,\"name\":\"BAIDUID\",\"path\":\"/\",\"sameSite\":\"unspecified\",\"secure\":false,\"session\":false,\"storeId\":\"0\",\"value\":\"E12A9B3CE1E0C48FFB72E304558B28E5:FG=1\"},{\"domain\":\"www.baidu.com\",\"hostOnly\":true,\"httpOnly\":false,\"name\":\"BD_HOME\",\"path\":\"/\",\"sameSite\":\"unspecified\",\"secure\":false,\"session\":true,\"storeId\":\"0\",\"value\":\"1\"},{\"domain\":\".baidu.com\",\"hostOnly\":false,\"httpOnly\":false,\"name\":\"H_PS_PSSID\",\"path\":\"/\",\"sameSite\":\"unspecified\",\"secure\":false,\"session\":true,\"storeId\":\"0\",\"value\":\"31253_33848_33676_33607_26350_22159\"},{\"domain\":\".baidu.com\",\"expirationDate\":1654654106.343895,\"hostOnly\":false,\"httpOnly\":false,\"name\":\"BAIDUID_BFESS\",\"path\":\"/\",\"sameSite\":\"no_restriction\",\"secure\":true,\"session\":false,\"storeId\":\"0\",\"value\":\"E12A9B3CE1E0C48FFB72E304558B28E5:FG=1\"},{\"domain\":\"www.baidu.com\",\"expirationDate\":1623982105,\"hostOnly\":true,\"httpOnly\":false,\"name\":\"BD_UPN\",\"path\":\"/\",\"sameSite\":\"unspecified\",\"secure\":false,\"session\":false,\"storeId\":\"0\",\"value\":\"12314753\"},{\"domain\":\".baidu.com\",\"expirationDate\":1623121706,\"hostOnly\":false,\"httpOnly\":false,\"name\":\"BA_HECTOR\",\"path\":\"/\",\"sameSite\":\"unspecified\",\"secure\":false,\"session\":false,\"storeId\":\"0\",\"value\":\"2180ag840485al8hmh1gbtk8q0r\"}]", "error": null, "browserNotFound": false }
browserId | int | browserId |
{ "browserId": 22980 }
{ "success": true, "result": "[{\"domain\":\".baidu.com\",\"expirationDate\":3770603360.986113,\"hostOnly\":false,\"httpOnly\":false,\"name\":\"PSTM\",\"path\":\"/\",\"sameSite\":\"unspecified\",\"secure\":false,\"session\":false,\"storeId\":\"0\",\"value\":\"1623119714\"},{\"domain\":\".baidu.com\",\"expirationDate\":1654655713.986123,\"hostOnly\":false,\"httpOnly\":false,\"name\":\"BAIDUID\",\"path\":\"/\",\"sameSite\":\"unspecified\",\"secure\":false,\"session\":false,\"storeId\":\"0\",\"value\":\"035813153AF4AB0ABA38DBFD12E5EC42:FG=1\"},{\"domain\":\"www.baidu.com\",\"hostOnly\":true,\"httpOnly\":false,\"name\":\"BD_HOME\",\"path\":\"/\",\"sameSite\":\"unspecified\",\"secure\":false,\"session\":true,\"storeId\":\"0\",\"value\":\"1\"},{\"domain\":\".baidu.com\",\"hostOnly\":false,\"httpOnly\":false,\"name\":\"H_PS_PSSID\",\"path\":\"/\",\"sameSite\":\"unspecified\",\"secure\":false,\"session\":true,\"storeId\":\"0\",\"value\":\"34004_33607_26350\"},{\"domain\":\".baidu.com\",\"expirationDate\":2632271713,\"hostOnly\":false,\"httpOnly\":false,\"name\":\"BIDUPSID\",\"path\":\"/\",\"sameSite\":\"unspecified\",\"secure\":false,\"session\":false,\"storeId\":\"0\",\"value\":\"E12A9B3CE1E0C48F92F0E7D67493AF3B\"},{\"domain\":\"www.baidu.com\",\"expirationDate\":1623983714,\"hostOnly\":true,\"httpOnly\":false,\"name\":\"BD_UPN\",\"path\":\"/\",\"sameSite\":\"unspecified\",\"secure\":false,\"session\":false,\"storeId\":\"0\",\"value\":\"12314753\"},{\"domain\":\".baidu.com\",\"expirationDate\":1623123314,\"hostOnly\":false,\"httpOnly\":false,\"name\":\"BA_HECTOR\",\"path\":\"/\",\"sameSite\":\"unspecified\",\"secure\":false,\"session\":false,\"storeId\":\"0\",\"value\":\"a02l04258h0l2g20gm1gbtlr20r\"},{\"domain\":\".qq.com\",\"hostOnly\":false,\"httpOnly\":false,\"name\":\"pgv_info\",\"path\":\"/\",\"sameSite\":\"unspecified\",\"secure\":false,\"session\":true,\"storeId\":\"0\",\"value\":\"ssid=s6826192643\"},{\"domain\":\".www.qq.com\",\"expirationDate\":1623121517,\"hostOnly\":false,\"httpOnly\":false,\"name\":\"ts_last\",\"path\":\"/\",\"sameSite\":\"unspecified\",\"secure\":false,\"session\":false,\"storeId\":\"0\",\"value\":\"www.qq.com/\"},{\"domain\":\".qq.com\",\"expirationDate\":2147385600,\"hostOnly\":false,\"httpOnly\":false,\"name\":\"pgv_pvid\",\"path\":\"/\",\"sameSite\":\"unspecified\",\"secure\":false,\"session\":false,\"storeId\":\"0\",\"value\":\"9261427969\"},{\"domain\":\".www.qq.com\",\"expirationDate\":1686191717,\"hostOnly\":false,\"httpOnly\":false,\"name\":\"ts_uid\",\"path\":\"/\",\"sameSite\":\"unspecified\",\"secure\":false,\"session\":false,\"storeId\":\"0\",\"value\":\"134862111\"},{\"domain\":\"www.qq.com\",\"expirationDate\":1623206117,\"hostOnly\":true,\"httpOnly\":false,\"name\":\"ad_play_index\",\"path\":\"/\",\"sameSite\":\"unspecified\",\"secure\":false,\"session\":false,\"storeId\":\"0\",\"value\":\"24\"},{\"domain\":\".l.qq.com\",\"expirationDate\":2145887999.404651,\"hostOnly\":false,\"httpOnly\":true,\"name\":\"lv_play_index\",\"path\":\"/\",\"sameSite\":\"unspecified\",\"secure\":false,\"session\":false,\"storeId\":\"0\",\"value\":\"92\"},{\"domain\":\".l.qq.com\",\"expirationDate\":2145888000.343521,\"hostOnly\":false,\"httpOnly\":true,\"name\":\"appuser\",\"path\":\"/\",\"sameSite\":\"unspecified\",\"secure\":false,\"session\":false,\"storeId\":\"0\",\"value\":\"4B0D7D315C9F16CC\"},{\"domain\":\".tj.video.qq.com\",\"hostOnly\":false,\"httpOnly\":false,\"name\":\"lv_irt_id\",\"path\":\"/\",\"sameSite\":\"unspecified\",\"secure\":false,\"session\":true,\"storeId\":\"0\",\"value\":\"7bba9392c58db70e3cd403c72a1007a3\"},{\"domain\":\".l.qq.com\",\"expirationDate\":2145888000.34347,\"hostOnly\":false,\"httpOnly\":true,\"name\":\"o_minduid\",\"path\":\"/\",\"sameSite\":\"unspecified\",\"secure\":false,\"session\":false,\"storeId\":\"0\",\"value\":\"01GQEVG38T6tNi2FrAhHO38qQSk_W1v5\"},{\"domain\":\".l.qq.com\",\"expirationDate\":1623206118.34354,\"hostOnly\":false,\"httpOnly\":true,\"name\":\"Lturn\",\"path\":\"/\",\"sameSite\":\"unspecified\",\"secure\":false,\"session\":false,\"storeId\":\"0\",\"value\":\"776\"},{\"domain\":\".l.qq.com\",\"expirationDate\":1623206118.343554,\"hostOnly\":false,\"httpOnly\":true,\"name\":\"LKBturn\",\"path\":\"/\",\"sameSite\":\"unspecified\",\"secure\":false,\"session\":false,\"storeId\":\"0\",\"value\":\"878\"},{\"domain\":\".l.qq.com\",\"expirationDate\":1623206118.343565,\"hostOnly\":false,\"httpOnly\":true,\"name\":\"LPVLturn\",\"path\":\"/\",\"sameSite\":\"unspecified\",\"secure\":false,\"session\":false,\"storeId\":\"0\",\"value\":\"503\"},{\"domain\":\".l.qq.com\",\"expirationDate\":1623206118.343576,\"hostOnly\":false,\"httpOnly\":true,\"name\":\"LPLFturn\",\"path\":\"/\",\"sameSite\":\"unspecified\",\"secure\":false,\"session\":false,\"storeId\":\"0\",\"value\":\"205\"}]", "error": null, "browserNotFound": false }
browserId | int | browserId |
{ "browserId": 22980 }
{ "success": true, "result": null, "error": null, "browserNotFound": false }
browserId | int | browserId |
filePath | String | save to local path(png) |
elementScreenshot | bool | get element screenshot(true/false) |
searchElement | Object | condition of search element |
{"browserId":22980,"filePath":"C:\\Users\\RHKJ008\\Desktop\\getimagetest.png","elementScreenshot":false,"searchElement":null} OR {"browserId":22980,"filePath":"C:\\Users\\RHKJ008\\Desktop\\getimagetest.png","elementScreenshot":true,"searchElement":{"parent":null,"selector":"*[id='lg']","isXPath":false,"index":0,"searchAllIframe":false,"selectorForSearchIframe":null}}
{ "success": true, "result": "C:\\Users\\RHKJ008\\Desktop\\getimagetest.png", "error": null, "browserNotFound": false }
browserId | int | browserId |
js | String | js to be executed |
inIframe | bool | execute in jframe(true/false) |
selectorForIframe | String | find selector in iframe |
{ "browserId": 22980, "js": "alert('hello world')", "inIframe": false, "selectorForIframe": null }
{ "success": true, "result": null, "error": null, "browserNotFound": false }
browserId | int | browserId |
searchElement | Object | condition of searchElement |
saveElementName | String | Assign a name to the found element. Use the element by setting elementName in methods such as "grab text" and "set value" |
{ "browserId": 22980, "searchElement": { "parent": null, "selector": "span.soutu-btn", "isXPath": false, "index": 0, "searchAllIframe": false, "selectorForSearchIframe": null }, "saveElementName": "btnSoutu" }
{ "success": true, "result": "btnSoutu", "error": null, "browserNotFound": false }
browserId | int | browserId |
searchElement | Object | condition of searchElement |
loop | int | loop time |
sleep | String | The interval between each loop, in seconds |
{ "browserId": 22980, "searchElement": { "parent": null, "selector": "span.soutu-btn", "isXPath": false, "index": 0, "searchAllIframe": false, "selectorForSearchIframe": null }, "loop": 10, "sleep": 5 }
{ "success": true, "result": null, "error": null, "browserNotFound": false }
browserId | int | browserId |
specialText | int | special text,0 - source code,1 - title,2 - Body,3 - URL |
{ "browserId": 22980, "specialText": 3 }
{ "success": true, "result": "https://www.baidu.com/", "error": null, "browserNotFound": false }
browserId | int | browserid |
elementName | String | Set the name of the element found after using the "find element" and "waiting for page load" methods to null when using searchElement |
searchAllIframe | bool | Search in all iframe along with elementName(true/false) |
searchElement | Object | condition of searchElement. Set it to null when use elementName |
property | String | property name |
{ "browserId": 22980, "elementName": null, "searchAllIframe": false, "searchElement": { "parent": null, "selector": "*[id='su']", "isXPath": false, "index": 0, "searchAllIframe": false, "selectorForSearchIframe": null }, "property": "value" }
{ "success": true, "result": "百度一下", "error": null, "browserNotFound": false }
browserId | int | browserId |
searchElement | Object | condition of searchElement |
searchAllIframe | bool | search in all iframe(true/false) |
property | String | property name |
saveVarName | String | save variable name |
{ "browserId": 22980, "searchElement": { "parent": null, "selector": "a", "isXPath": false, "index": -1, "searchAllIframe": false, "selectorForSearchIframe": null }, "searchAllIframe": false, "property": "href", "saveVarName": "linkList" }
{ "success": true, "result": [ "https://www.baidu.com/link?url=XXX", "https://www.baidu.com/link?url=YYY" ], "error": null, "browserNotFound": false }
browserId | int | browserId |
elementName | String | element name saved by findelement |
searchElement | Object | condition of searchElement (null when use elementName) |
value | String | value to set |
isClear | bool | clear before set(true/false) |
{ "browserId": 22980, "elementName": null, "searchElement": { "parent": null, "selector": "*[id='kw']", "isXPath": false, "index": 0, "searchAllIframe": false, "selectorForSearchIframe": null }, "value": "test", "isClear": true }
{ "success": true, "result": null, "error": null, "browserNotFound": false }
browserId | int | browserId |
elementName | String | element name saved by findelement |
searchElement | Object | condition of searchElement (null when use elementName) |
clickType | int | 0 - left click, 1 - right click, 2 - double click |
{ "browserId": 22980, "elementName": null, "searchElement": { "parent": null, "selector": "*[id='su']", "isXPath": false, "index": 0, "searchAllIframe": false, "selectorForSearchIframe": null }, "clickType": 0 }
{ "success": true, "result": null, "error": null, "browserNotFound": false }
browserId | int | browserId |
elementName | String | element name saved by findelement |
searchElement | Object | condition of searchElement (null when use elementName) |
{ "browserId": 22980, "elementName": null, "searchElement": { "parent": null, "selector": "form", "isXPath": false, "index": 0, "searchAllIframe": false, "selectorForSearchIframe": null } }
{ "success": true, "result": null, "error": null, "browserNotFound": false }
browserId | int | browserId |
elementName | String | element name saved by findelement |
searchElement | Object | condition of searchElement (null when use elementName) |
{ "browserId": 22980, "elementName": null, "searchElement": { "parent": null, "selector": "*[id='kw']", "isXPath": false, "index": 0, "searchAllIframe": false, "selectorForSearchIframe": null } }
{ "success": true, "result": true, "error": null, "browserNotFound": false }
browserId | int | browserId |
searchElement | Object | condition of searchElement |
{ "browserId": 22980, "searchElement": { "parent": null, "selector": "a", "isXPath": false, "index": -1, "searchAllIframe": false, "selectorForSearchIframe": null } }
{ "success": true, "result": 24, "error": null, "browserNotFound": false }
browserId | int | browserId |
scrollType | int | 0 - scroll to top, 1 - scroll to bottom, 2 - scroll by x,y |
x | int | x coordinate (valid when scrollType=2) |
y | int | y coordinate (valid when scrollType=2) |
{ "browserId": 22980, "scrollType": 2, "x": 0, "y": 500 }
{ "success": true, "result": null, "error": null, "browserNotFound": false }
browserId | int | browserId |
key | String | keyboard key (e.g., "Enter", "Tab", "Backspace") |
text | String | text to input (use when key is normal characters) |
{ "browserId": 22980, "key": "Enter", "text": "" }
{ "success": true, "result": null, "error": null, "browserNotFound": false }