Skip to content

Commit

Permalink
Version Match Detection
Browse files Browse the repository at this point in the history
  • Loading branch information
naibo committed May 21, 2023
1 parent 4b276d4 commit b5e5aac
Show file tree
Hide file tree
Showing 3 changed files with 108 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ElectronJS/src/taskGrid/FlowChart_CN.html
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ <h4 class="modal-title">等价XPath</h4>
</div>
<label>页面加载最长等待时间(秒):</label>
<input onkeydown="inputDelete(event)" class="form-control" v-model.number="nowNode['parameters']['maxWaitTime']" type="number" required></input>
<label>执行完是否向下滚动:</label>
<label>打开网页后是否向下滚动:</label>
<select v-model='nowNode["parameters"]["scrollType"]' class="form-control">
<option value = 0>不滚动</option>
<option value = 1>向下滚动一屏</option>
Expand All @@ -127,7 +127,7 @@ <h4 class="modal-title">等价XPath</h4>
</div>
<label>点击后页面加载最长等待时间(秒):</label>
<input onkeydown="inputDelete(event)" class="form-control" v-model.number="nowNode['parameters']['maxWaitTime']" type="number" required></input>
<label>执行完是否向下滚动:</label>
<label>点击后是否向下滚动页面:</label>
<select v-model='nowNode["parameters"]["scrollType"]' class="form-control">
<option value = 0>不滚动</option>
<option value = 1>向下滚动一屏</option>
Expand Down
105 changes: 105 additions & 0 deletions ElectronJS/tasks/64.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
{
"id": 64,
"name": "新web采集任务",
"url": "https://www.jd.com",
"links": "https://www.jd.com",
"create_time": "5/21/2023, 8:32:38 PM",
"version": "0.3.0",
"containJudge": false,
"desc": "https://www.jd.com",
"inputParameters": [
{
"id": 0,
"name": "urlList_0",
"nodeId": 1,
"nodeName": "打开网页",
"value": "https://www.jd.com",
"desc": "要采集的网址列表,多行以\\n分开",
"type": "string",
"exampleValue": "https://www.jd.com"
}
],
"outputParameters": [],
"graph": [
{
"index": 0,
"id": 0,
"parentId": 0,
"type": -1,
"option": 0,
"title": "root",
"sequence": [
2
],
"parameters": {
"history": 1,
"tabIndex": 0,
"useLoop": false,
"xpath": "",
"wait": 0
},
"isInLoop": false
},
{
"id": 2,
"index": 1,
"parentId": 1,
"type": 0,
"option": 1,
"title": "打开网页",
"sequence": [],
"isInLoop": true,
"position": 0,
"parameters": {
"useLoop": false,
"xpath": "",
"wait": 0,
"beforeJS": "",
"beforeJSWaitTime": 0,
"afterJS": "",
"afterJSWaitTime": 0,
"url": "https://www.jd.com",
"links": "https://www.jd.com",
"maxWaitTime": 10,
"scrollType": 0,
"scrollCount": 0
}
},
{
"id": 1,
"index": 2,
"parentId": 0,
"type": 1,
"option": 8,
"title": "循环",
"sequence": [
1
],
"isInLoop": false,
"position": 0,
"parameters": {
"history": 1,
"tabIndex": 0,
"useLoop": false,
"xpath": "",
"wait": 0,
"beforeJS": "",
"beforeJSWaitTime": 0,
"afterJS": "",
"afterJSWaitTime": 0,
"scrollType": 0,
"scrollCount": 0,
"loopType": "6",
"pathList": "",
"textList": "",
"code": "",
"waitTime": 0,
"exitCount": 0,
"historyWait": 2,
"breakMode": 0,
"breakCode": "",
"breakCodeWaitTime": 0
}
}
]
}
1 change: 1 addition & 0 deletions ElectronJS/tasks/65.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"id":65,"name":"新web采集任务","url":"https://www.jd.com","links":"https://www.jd.com","create_time":"5/21/2023, 8:46:34 PM","version":"0.3.0","containJudge":false,"desc":"https://www.jd.com","inputParameters":[{"id":0,"name":"urlList_0","nodeId":1,"nodeName":"打开网页","value":"https://www.jd.com","desc":"要采集的网址列表,多行以\\n分开","type":"string","exampleValue":"https://www.jd.com"},{"id":1,"name":"loopText_1","nodeId":2,"nodeName":"循环","desc":"要输入的文本/网址,多行以\\n分开","type":"string","exampleValue":"https://www.jd.com?id=1\nhttps://www.jd.com?id=2\nhttps://www.jd.com?id=3\nhttps://www.jd.com?id=4\nhttps://www.jd.com?id=5\n","value":"https://www.jd.com?id=1\nhttps://www.jd.com?id=2\nhttps://www.jd.com?id=3\nhttps://www.jd.com?id=4\nhttps://www.jd.com?id=5\n"}],"outputParameters":[],"graph":[{"index":0,"id":0,"parentId":0,"type":-1,"option":0,"title":"root","sequence":[1,2],"parameters":{"history":1,"tabIndex":0,"useLoop":false,"xpath":"","wait":0},"isInLoop":false},{"id":1,"index":1,"parentId":0,"type":0,"option":1,"title":"打开网页","sequence":[],"isInLoop":false,"position":0,"parameters":{"useLoop":false,"xpath":"","wait":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"url":"https://www.jd.com","links":"https://www.jd.com","maxWaitTime":3,"scrollType":0,"scrollCount":0}},{"id":2,"index":2,"parentId":0,"type":1,"option":8,"title":"循环","sequence":[3],"isInLoop":false,"position":1,"parameters":{"history":1,"tabIndex":0,"useLoop":false,"xpath":"","wait":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"scrollType":0,"scrollCount":0,"loopType":"4","pathList":"","textList":"https://www.jd.com?id=1\nhttps://www.jd.com?id=2\nhttps://www.jd.com?id=3\nhttps://www.jd.com?id=4\nhttps://www.jd.com?id=5\n","code":"","waitTime":0,"exitCount":0,"historyWait":2,"breakMode":"1","breakCode":"return window.innerHeight > 500","breakCodeWaitTime":0}},{"id":3,"index":3,"parentId":2,"type":0,"option":1,"title":"打开网页","sequence":[],"isInLoop":true,"position":0,"parameters":{"history":1,"tabIndex":0,"useLoop":true,"xpath":"","wait":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"url":"about:blank","links":"about:blank","maxWaitTime":2,"scrollType":0,"scrollCount":0}}]}

0 comments on commit b5e5aac

Please sign in to comment.