Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

171 lignes
4.9 KiB

  1. {
  2. "id": 45,
  3. "name": "定义JS操作",
  4. "url": "https://www.jd.com",
  5. "links": "https://www.jd.com",
  6. "containJudge": false,
  7. "desc": "https://www.jd.com",
  8. "inputParameters": [
  9. {
  10. "id": 0,
  11. "name": "urlList_0",
  12. "nodeId": 1,
  13. "nodeName": "打开网页",
  14. "value": "https://www.jd.com",
  15. "desc": "要采集的网址列表,多行以\\n分开",
  16. "type": "string",
  17. "exampleValue": "https://www.jd.com"
  18. },
  19. {
  20. "id": 1,
  21. "name": "loopTimes_循环_1",
  22. "nodeId": 3,
  23. "nodeName": "循环",
  24. "desc": "循环循环执行的次数(0代表无限循环)",
  25. "type": "int",
  26. "exampleValue": 0,
  27. "value": 0
  28. },
  29. {
  30. "id": 2,
  31. "name": "inputText_2",
  32. "nodeName": "输入文字",
  33. "nodeId": 4,
  34. "desc": "要输入的文本,如京东搜索框输入:电脑",
  35. "type": "string",
  36. "exampleValue": "",
  37. "value": ""
  38. }
  39. ],
  40. "outputParameters": [],
  41. "graph": [
  42. {
  43. "index": 0,
  44. "id": 0,
  45. "parentId": 0,
  46. "type": -1,
  47. "option": 0,
  48. "title": "root",
  49. "sequence": [
  50. 1,
  51. 3
  52. ],
  53. "parameters": {
  54. "history": 1,
  55. "tabIndex": 0,
  56. "useLoop": false,
  57. "xpath": "",
  58. "wait": 0
  59. },
  60. "isInLoop": false
  61. },
  62. {
  63. "id": 1,
  64. "index": 1,
  65. "parentId": 0,
  66. "type": 0,
  67. "option": 1,
  68. "title": "打开网页",
  69. "sequence": [],
  70. "isInLoop": false,
  71. "position": 0,
  72. "parameters": {
  73. "useLoop": false,
  74. "xpath": "",
  75. "wait": 0,
  76. "beforeJS": "",
  77. "beforeJSWaitTime": 0,
  78. "afterJS": "",
  79. "afterJSWaitTime": 0,
  80. "url": "https://www.jd.com",
  81. "links": "https://www.jd.com",
  82. "scrollType": 0,
  83. "scrollCount": 0
  84. }
  85. },
  86. {
  87. "id": 4,
  88. "index": 2,
  89. "parentId": 2,
  90. "type": 0,
  91. "option": 2,
  92. "title": "点击元素",
  93. "sequence": [],
  94. "isInLoop": true,
  95. "position": 1,
  96. "parameters": {
  97. "history": 4,
  98. "tabIndex": 0,
  99. "useLoop": true,
  100. "xpath": "//*[contains(@ceM\")]/div[1]",
  101. "wait": 0,
  102. "beforeJS": "arguments[0].click()",
  103. "beforeJSWaitTime": 4,
  104. "afterJS": "arguments[0].innerText = \"test\"",
  105. "afterJSWaitTime": 5,
  106. "scrollType": 0,
  107. "scrollCount": 0,
  108. "paras": [],
  109. "allXPaths": [
  110. "/html/body/div[5]/div[1]/div[1]/div[1]/div[1]/div[1]/div[1]/div[1]/div[1]/div[1]",
  111. "//div[contains(., '/手机/数码')]",
  112. "//DIV[@class='LeftSide_menu_item__SBMWC LeftSide_text_space__2UhbG ']"
  113. ]
  114. }
  115. },
  116. {
  117. "id": 2,
  118. "index": 3,
  119. "parentId": 0,
  120. "type": 1,
  121. "option": 8,
  122. "title": "循环",
  123. "sequence": [
  124. 4,
  125. 2
  126. ],
  127. "isInLoop": false,
  128. "position": 1,
  129. "parameters": {
  130. "history": 1,
  131. "tabIndex": 0,
  132. "useLoop": false,
  133. "xpath": "//*[contains(@class, \"LeftSide_menu_list__qXCeM\")]/div[1]",
  134. "wait": 0,
  135. "beforeJS": "",
  136. "beforeJSWaitTime": 0,
  137. "afterJS": "",
  138. "afterJSWaitTime": 0,
  139. "scrollType": 0,
  140. "scrollCount": 0,
  141. "loopType": 0,
  142. "pathList": "",
  143. "textList": "",
  144. "exitCount": 0,
  145. "historyWait": 2
  146. }
  147. },
  148. {
  149. "id": 3,
  150. "index": 4,
  151. "parentId": 2,
  152. "type": 0,
  153. "option": 4,
  154. "title": "输入文字",
  155. "sequence": [],
  156. "isInLoop": true,
  157. "position": 0,
  158. "parameters": {
  159. "history": 1,
  160. "tabIndex": 0,
  161. "useLoop": false,
  162. "xpath": "",
  163. "wait": 0,
  164. "beforeJS": "adsf",
  165. "beforeJSWaitTime": 1,
  166. "afterJS": "qwe",
  167. "afterJSWaitTime": 2,
  168. "value": ""
  169. }
  170. }
  171. ]
  172. }