Change wait time position

This commit is contained in:
naibo 2023-06-27 01:39:09 +08:00
parent 83d9c9a626
commit c9c5848ef8
33 changed files with 552 additions and 3 deletions

View File

@ -0,0 +1 @@
{"id":28,"name":"新闻中心 - 小鱼易连-官网-让世界零距离","url":"https://www.xylink.com/news","links":"https://www.xylink.com/news","create_time":"6/26/2023, 5:49:11 PM","version":"0.3.2","containJudge":false,"desc":"https://www.xylink.com/news","inputParameters":[{"id":0,"name":"urlList_0","nodeId":1,"nodeName":"打开网页","value":"https://www.xylink.com/news","desc":"要采集的网址列表,多行以\\n分开","type":"string","exampleValue":"https://www.xylink.com/news"},{"id":1,"name":"loopTimes_循环_1","nodeId":2,"nodeName":"循环","desc":"循环循环执行的次数0代表无限循环","type":"int","exampleValue":0,"value":0}],"outputParameters":[{"id":0,"name":"自定义操作","desc":"自定义操作返回的数据","type":"string","exampleValue":""}],"graph":[{"index":0,"id":0,"parentId":0,"type":-1,"option":0,"title":"root","sequence":[1,4,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.xylink.com/news","links":"https://www.xylink.com/news","maxWaitTime":10,"scrollType":0,"scrollCount":1,"scrollWaitTime":1}},{"id":3,"index":2,"parentId":0,"type":1,"option":8,"title":"循环","sequence":[5,6,3],"isInLoop":false,"position":2,"parameters":{"history":4,"tabIndex":-1,"useLoop":false,"xpath":"//*[contains(@class, \"ant-pagination-next\")]/button[1]","wait":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"scrollType":0,"scrollCount":1,"scrollWaitTime":1,"loopType":0,"pathList":"","textList":"","code":"","waitTime":0,"exitCount":0,"historyWait":2,"breakMode":0,"breakCode":"","breakCodeWaitTime":0,"allXPaths":["/html/body/div[1]/div[1]/div[2]/section[1]/div[1]/div[2]/ul[1]/li[7]/button[1]","//button[contains(., '')]","//BUTTON[@class='ant-pagination-item-link']"]}},{"id":6,"index":3,"parentId":3,"type":0,"option":2,"title":"点击元素","sequence":[],"isInLoop":true,"position":2,"parameters":{"history":4,"tabIndex":-1,"useLoop":true,"xpath":"//*[contains(@class, \"ant-pagination-next\")]/button[1]","wait":2,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"scrollType":0,"scrollCount":1,"scrollWaitTime":1,"maxWaitTime":10,"paras":[],"allXPaths":["/html/body/div[1]/div[1]/div[2]/section[1]/div[1]/div[2]/ul[1]/li[7]/button[1]","//button[contains(., '')]","//BUTTON[@class='ant-pagination-item-link']"],"loopType":0}},{"id":2,"index":4,"parentId":0,"type":0,"option":5,"title":"自定义操作","sequence":[],"isInLoop":false,"position":1,"parameters":{"history":1,"tabIndex":0,"useLoop":false,"xpath":"","wait":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"codeMode":0,"code":"let_a = 1;","waitTime":0,"recordASField":0}},{"id":4,"index":5,"parentId":3,"type":0,"option":5,"title":"自定义操作","sequence":[],"isInLoop":true,"position":0,"parameters":{"history":1,"tabIndex":0,"useLoop":false,"xpath":"","wait":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"codeMode":0,"code":"a = a + 1;","waitTime":0,"recordASField":0}},{"id":5,"index":6,"parentId":3,"type":0,"option":5,"title":"自定义操作","sequence":[],"isInLoop":true,"position":1,"parameters":{"history":1,"tabIndex":0,"useLoop":false,"xpath":"","wait":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"codeMode":0,"code":"return a","waitTime":0,"recordASField":"1"}}]}

View File

@ -0,0 +1 @@
{"id":29,"name":"新闻中心 - 小鱼易连-官网-让世界零距离","url":"https://www.xylink.com/news","links":"https://www.xylink.com/news","create_time":"6/26/2023, 5:50:10 PM","version":"0.3.2","containJudge":false,"desc":"https://www.xylink.com/news","inputParameters":[{"id":0,"name":"urlList_0","nodeId":1,"nodeName":"打开网页","value":"https://www.xylink.com/news","desc":"要采集的网址列表,多行以\\n分开","type":"string","exampleValue":"https://www.xylink.com/news"},{"id":1,"name":"loopTimes_循环_1","nodeId":2,"nodeName":"循环","desc":"循环循环执行的次数0代表无限循环","type":"int","exampleValue":0,"value":0}],"outputParameters":[{"id":0,"name":"自定义操作","desc":"自定义操作返回的数据","type":"string","exampleValue":""}],"graph":[{"index":0,"id":0,"parentId":0,"type":-1,"option":0,"title":"root","sequence":[1,4,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.xylink.com/news","links":"https://www.xylink.com/news","maxWaitTime":10,"scrollType":0,"scrollCount":1,"scrollWaitTime":1}},{"id":3,"index":2,"parentId":0,"type":1,"option":8,"title":"循环","sequence":[5,6,3],"isInLoop":false,"position":2,"parameters":{"history":4,"tabIndex":-1,"useLoop":false,"xpath":"//*[contains(@class, \"ant-pagination-next\")]/button[1]","wait":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"scrollType":0,"scrollCount":1,"scrollWaitTime":1,"loopType":0,"pathList":"","textList":"","code":"","waitTime":0,"exitCount":0,"historyWait":2,"breakMode":0,"breakCode":"","breakCodeWaitTime":0,"allXPaths":["/html/body/div[1]/div[1]/div[2]/section[1]/div[1]/div[2]/ul[1]/li[7]/button[1]","//button[contains(., '')]","//BUTTON[@class='ant-pagination-item-link']"]}},{"id":6,"index":3,"parentId":3,"type":0,"option":2,"title":"点击元素","sequence":[],"isInLoop":true,"position":2,"parameters":{"history":4,"tabIndex":-1,"useLoop":true,"xpath":"//*[contains(@class, \"ant-pagination-next\")]/button[1]","wait":2,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"scrollType":0,"scrollCount":1,"scrollWaitTime":1,"maxWaitTime":10,"paras":[],"allXPaths":["/html/body/div[1]/div[1]/div[2]/section[1]/div[1]/div[2]/ul[1]/li[7]/button[1]","//button[contains(., '')]","//BUTTON[@class='ant-pagination-item-link']"],"loopType":0}},{"id":2,"index":4,"parentId":0,"type":0,"option":5,"title":"自定义操作","sequence":[],"isInLoop":false,"position":1,"parameters":{"history":1,"tabIndex":0,"useLoop":false,"xpath":"","wait":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"codeMode":0,"code":"let_a = 1;","waitTime":0,"recordASField":0}},{"id":4,"index":5,"parentId":3,"type":0,"option":5,"title":"自定义操作","sequence":[],"isInLoop":true,"position":0,"parameters":{"history":1,"tabIndex":0,"useLoop":false,"xpath":"","wait":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"codeMode":0,"code":"let_a = let_a + 1;","waitTime":0,"recordASField":0}},{"id":5,"index":6,"parentId":3,"type":0,"option":5,"title":"自定义操作","sequence":[],"isInLoop":true,"position":1,"parameters":{"history":1,"tabIndex":0,"useLoop":false,"xpath":"","wait":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"codeMode":0,"code":"return let_a","waitTime":0,"recordASField":"1"}}]}

View File

@ -0,0 +1 @@
{"id":30,"name":"新闻中心 - 小鱼易连-官网-让世界零距离","url":"https://www.xylink.com/news","links":"https://www.xylink.com/news","create_time":"6/26/2023, 5:51:48 PM","version":"0.3.2","containJudge":false,"desc":"https://www.xylink.com/news","inputParameters":[{"id":0,"name":"urlList_0","nodeId":1,"nodeName":"打开网页","value":"https://www.xylink.com/news","desc":"要采集的网址列表,多行以\\n分开","type":"string","exampleValue":"https://www.xylink.com/news"},{"id":1,"name":"loopTimes_循环_1","nodeId":2,"nodeName":"循环","desc":"循环循环执行的次数0代表无限循环","type":"int","exampleValue":0,"value":0}],"outputParameters":[{"id":0,"name":"自定义操作","desc":"自定义操作返回的数据","type":"string","exampleValue":""}],"graph":[{"index":0,"id":0,"parentId":0,"type":-1,"option":0,"title":"root","sequence":[1,4,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.xylink.com/news","links":"https://www.xylink.com/news","maxWaitTime":10,"scrollType":0,"scrollCount":1,"scrollWaitTime":1}},{"id":3,"index":2,"parentId":0,"type":1,"option":8,"title":"循环","sequence":[5,6,3],"isInLoop":false,"position":2,"parameters":{"history":4,"tabIndex":-1,"useLoop":false,"xpath":"//*[contains(@class, \"ant-pagination-next\")]/button[1]","wait":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"scrollType":0,"scrollCount":1,"scrollWaitTime":1,"loopType":0,"pathList":"","textList":"","code":"","waitTime":0,"exitCount":0,"historyWait":2,"breakMode":0,"breakCode":"","breakCodeWaitTime":0,"allXPaths":["/html/body/div[1]/div[1]/div[2]/section[1]/div[1]/div[2]/ul[1]/li[7]/button[1]","//button[contains(., '')]","//BUTTON[@class='ant-pagination-item-link']"]}},{"id":6,"index":3,"parentId":3,"type":0,"option":2,"title":"点击元素","sequence":[],"isInLoop":true,"position":2,"parameters":{"history":4,"tabIndex":-1,"useLoop":true,"xpath":"//*[contains(@class, \"ant-pagination-next\")]/button[1]","wait":2,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"scrollType":0,"scrollCount":1,"scrollWaitTime":1,"maxWaitTime":10,"paras":[],"allXPaths":["/html/body/div[1]/div[1]/div[2]/section[1]/div[1]/div[2]/ul[1]/li[7]/button[1]","//button[contains(., '')]","//BUTTON[@class='ant-pagination-item-link']"],"loopType":0}},{"id":2,"index":4,"parentId":0,"type":0,"option":5,"title":"自定义操作","sequence":[],"isInLoop":false,"position":1,"parameters":{"history":1,"tabIndex":0,"useLoop":false,"xpath":"","wait":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"codeMode":0,"code":"let_a = 1;","waitTime":0,"recordASField":0}},{"id":4,"index":5,"parentId":3,"type":0,"option":5,"title":"自定义操作","sequence":[],"isInLoop":true,"position":0,"parameters":{"history":1,"tabIndex":0,"useLoop":false,"xpath":"","wait":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"codeMode":0,"code":"let_a = let_a + 1;","waitTime":0,"recordASField":0}},{"id":5,"index":6,"parentId":3,"type":0,"option":5,"title":"自定义操作","sequence":[],"isInLoop":true,"position":1,"parameters":{"history":1,"tabIndex":0,"useLoop":false,"xpath":"","wait":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"codeMode":0,"code":"for(let i=0;i<let_a;i++){\nconsole.log(\"as\", 1);\n}","waitTime":0,"recordASField":"1"}}]}

View File

@ -0,0 +1 @@
{"id":31,"name":"新闻中心 - 小鱼易连-官网-让世界零距离","url":"https://www.xylink.com/news","links":"https://www.xylink.com/news","create_time":"6/26/2023, 5:52:30 PM","version":"0.3.2","containJudge":false,"desc":"https://www.xylink.com/news","inputParameters":[{"id":0,"name":"urlList_0","nodeId":1,"nodeName":"打开网页","value":"https://www.xylink.com/news","desc":"要采集的网址列表,多行以\\n分开","type":"string","exampleValue":"https://www.xylink.com/news"},{"id":1,"name":"loopTimes_循环_1","nodeId":2,"nodeName":"循环","desc":"循环循环执行的次数0代表无限循环","type":"int","exampleValue":0,"value":0}],"outputParameters":[{"id":0,"name":"自定义操作","desc":"自定义操作返回的数据","type":"string","exampleValue":""}],"graph":[{"index":0,"id":0,"parentId":0,"type":-1,"option":0,"title":"root","sequence":[1,4,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.xylink.com/news","links":"https://www.xylink.com/news","maxWaitTime":10,"scrollType":0,"scrollCount":1,"scrollWaitTime":1}},{"id":3,"index":2,"parentId":0,"type":1,"option":8,"title":"循环","sequence":[5,6,3],"isInLoop":false,"position":2,"parameters":{"history":4,"tabIndex":-1,"useLoop":false,"xpath":"//*[contains(@class, \"ant-pagination-next\")]/button[1]","wait":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"scrollType":0,"scrollCount":1,"scrollWaitTime":1,"loopType":0,"pathList":"","textList":"","code":"","waitTime":0,"exitCount":0,"historyWait":2,"breakMode":0,"breakCode":"","breakCodeWaitTime":0,"allXPaths":["/html/body/div[1]/div[1]/div[2]/section[1]/div[1]/div[2]/ul[1]/li[7]/button[1]","//button[contains(., '')]","//BUTTON[@class='ant-pagination-item-link']"]}},{"id":6,"index":3,"parentId":3,"type":0,"option":2,"title":"点击元素","sequence":[],"isInLoop":true,"position":2,"parameters":{"history":4,"tabIndex":-1,"useLoop":true,"xpath":"//*[contains(@class, \"ant-pagination-next\")]/button[1]","wait":2,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"scrollType":0,"scrollCount":1,"scrollWaitTime":1,"maxWaitTime":10,"paras":[],"allXPaths":["/html/body/div[1]/div[1]/div[2]/section[1]/div[1]/div[2]/ul[1]/li[7]/button[1]","//button[contains(., '')]","//BUTTON[@class='ant-pagination-item-link']"],"loopType":0}},{"id":2,"index":4,"parentId":0,"type":0,"option":5,"title":"自定义操作","sequence":[],"isInLoop":false,"position":1,"parameters":{"history":1,"tabIndex":0,"useLoop":false,"xpath":"","wait":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"codeMode":0,"code":"let_a = 1;","waitTime":0,"recordASField":0}},{"id":4,"index":5,"parentId":3,"type":0,"option":5,"title":"自定义操作","sequence":[],"isInLoop":true,"position":0,"parameters":{"history":1,"tabIndex":0,"useLoop":false,"xpath":"","wait":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"codeMode":0,"code":"let_a = let_a + 1;","waitTime":0,"recordASField":0}},{"id":5,"index":6,"parentId":3,"type":0,"option":5,"title":"自定义操作","sequence":[],"isInLoop":true,"position":1,"parameters":{"history":1,"tabIndex":0,"useLoop":false,"xpath":"","wait":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"codeMode":0,"code":"for(let i=0;i<let_a;i++){\nconsole.log(\"as\", i);\n}","waitTime":0,"recordASField":"1"}}]}

View File

@ -0,0 +1 @@
{"id":32,"name":"新闻中心 - 小鱼易连-官网-让世界零距离","url":"https://www.xylink.com/news","links":"https://www.xylink.com/news","create_time":"6/26/2023, 5:52:30 PM","version":"0.3.2","containJudge":false,"desc":"https://www.xylink.com/news","inputParameters":[{"id":0,"name":"urlList_0","nodeId":1,"nodeName":"打开网页","value":"https://www.xylink.com/news","desc":"要采集的网址列表,多行以\\n分开","type":"string","exampleValue":"https://www.xylink.com/news"},{"id":1,"name":"loopTimes_循环_1","nodeId":2,"nodeName":"循环","desc":"循环循环执行的次数0代表无限循环","type":"int","exampleValue":0,"value":0}],"outputParameters":[{"id":0,"name":"自定义操作","desc":"自定义操作返回的数据","type":"string","exampleValue":""}],"graph":[{"index":0,"id":0,"parentId":0,"type":-1,"option":0,"title":"root","sequence":[1,4,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.xylink.com/news","links":"https://www.xylink.com/news","maxWaitTime":10,"scrollType":0,"scrollCount":1,"scrollWaitTime":1}},{"id":3,"index":2,"parentId":0,"type":1,"option":8,"title":"循环","sequence":[5,6,3],"isInLoop":false,"position":2,"parameters":{"history":4,"tabIndex":-1,"useLoop":false,"xpath":"//*[contains(@class, \"ant-pagination-next\")]/button[1]","wait":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"scrollType":0,"scrollCount":1,"scrollWaitTime":1,"loopType":0,"pathList":"","textList":"","code":"","waitTime":0,"exitCount":0,"historyWait":2,"breakMode":0,"breakCode":"","breakCodeWaitTime":0,"allXPaths":["/html/body/div[1]/div[1]/div[2]/section[1]/div[1]/div[2]/ul[1]/li[7]/button[1]","//button[contains(., '')]","//BUTTON[@class='ant-pagination-item-link']"]}},{"id":6,"index":3,"parentId":3,"type":0,"option":2,"title":"点击元素","sequence":[],"isInLoop":true,"position":2,"parameters":{"history":4,"tabIndex":-1,"useLoop":true,"xpath":"//*[contains(@class, \"ant-pagination-next\")]/button[1]","wait":2,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"scrollType":0,"scrollCount":1,"scrollWaitTime":1,"maxWaitTime":10,"paras":[],"allXPaths":["/html/body/div[1]/div[1]/div[2]/section[1]/div[1]/div[2]/ul[1]/li[7]/button[1]","//button[contains(., '')]","//BUTTON[@class='ant-pagination-item-link']"],"loopType":0}},{"id":2,"index":4,"parentId":0,"type":0,"option":5,"title":"自定义操作","sequence":[],"isInLoop":false,"position":1,"parameters":{"history":1,"tabIndex":0,"useLoop":false,"xpath":"","wait":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"codeMode":0,"code":"let_a = 1;","waitTime":0,"recordASField":0}},{"id":4,"index":5,"parentId":3,"type":0,"option":5,"title":"自定义操作","sequence":[],"isInLoop":true,"position":0,"parameters":{"history":1,"tabIndex":0,"useLoop":false,"xpath":"","wait":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"codeMode":0,"code":"let_a = let_a + 1;","waitTime":0,"recordASField":0}},{"id":5,"index":6,"parentId":3,"type":0,"option":5,"title":"自定义操作","sequence":[],"isInLoop":true,"position":1,"parameters":{"history":1,"tabIndex":0,"useLoop":false,"xpath":"","wait":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"codeMode":0,"code":"for(let i=0;i<let_a;i++){\nconsole.log(\"as\", i);\n}","waitTime":0,"recordASField":"1"}}]}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
{"id":41,"name":"新闻中心 - 小鱼易连-官网-让世界零距离","url":"https://www.xylink.com/news","links":"https://www.xylink.com/news","create_time":"6/26/2023, 5:52:30 PM","version":"0.3.2","containJudge":false,"desc":"https://www.xylink.com/news","inputParameters":[{"id":0,"name":"urlList_0","nodeId":1,"nodeName":"打开网页","value":"https://www.xylink.com/news","desc":"要采集的网址列表,多行以\\n分开","type":"string","exampleValue":"https://www.xylink.com/news"},{"id":1,"name":"loopTimes_循环_1","nodeId":2,"nodeName":"循环","desc":"循环循环执行的次数0代表无限循环","type":"int","exampleValue":0,"value":0}],"outputParameters":[{"id":0,"name":"自定义操作","desc":"自定义操作返回的数据","type":"string","exampleValue":""}],"graph":[{"index":0,"id":0,"parentId":0,"type":-1,"option":0,"title":"root","sequence":[1,4,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.xylink.com/news","links":"https://www.xylink.com/news","maxWaitTime":10,"scrollType":0,"scrollCount":1,"scrollWaitTime":1}},{"id":3,"index":2,"parentId":0,"type":1,"option":8,"title":"循环","sequence":[5,6,3],"isInLoop":false,"position":2,"parameters":{"history":4,"tabIndex":-1,"useLoop":false,"xpath":"//*[contains(@class, \"ant-pagination-next\")]/button[1]","wait":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"scrollType":0,"scrollCount":1,"scrollWaitTime":1,"loopType":0,"pathList":"","textList":"","code":"","waitTime":0,"exitCount":0,"historyWait":2,"breakMode":0,"breakCode":"","breakCodeWaitTime":0,"allXPaths":["/html/body/div[1]/div[1]/div[2]/section[1]/div[1]/div[2]/ul[1]/li[7]/button[1]","//button[contains(., '')]","//BUTTON[@class='ant-pagination-item-link']"]}},{"id":6,"index":3,"parentId":3,"type":0,"option":2,"title":"点击元素","sequence":[],"isInLoop":true,"position":2,"parameters":{"history":4,"tabIndex":-1,"useLoop":true,"xpath":"//*[contains(@class, \"ant-pagination-next\")]/button[1]","wait":2,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"scrollType":0,"scrollCount":1,"scrollWaitTime":1,"maxWaitTime":10,"paras":[],"allXPaths":["/html/body/div[1]/div[1]/div[2]/section[1]/div[1]/div[2]/ul[1]/li[7]/button[1]","//button[contains(., '')]","//BUTTON[@class='ant-pagination-item-link']"],"loopType":0}},{"id":2,"index":4,"parentId":0,"type":0,"option":5,"title":"自定义操作","sequence":[],"isInLoop":false,"position":1,"parameters":{"history":1,"tabIndex":0,"useLoop":false,"xpath":"","wait":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"codeMode":0,"code":"let_a = 1;","waitTime":0,"recordASField":0}},{"id":4,"index":5,"parentId":3,"type":0,"option":5,"title":"自定义操作","sequence":[],"isInLoop":true,"position":0,"parameters":{"history":1,"tabIndex":0,"useLoop":false,"xpath":"","wait":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"codeMode":0,"code":"let_a = let_a + 1;","waitTime":0,"recordASField":0}},{"id":5,"index":6,"parentId":3,"type":0,"option":5,"title":"自定义操作","sequence":[],"isInLoop":true,"position":1,"parameters":{"history":1,"tabIndex":0,"useLoop":false,"xpath":"","wait":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"codeMode":0,"code":"for(let i=0;i<let_a;i++){\nconsole.log(\"as\", i);\n}","waitTime":0,"recordASField":"1"}}]}

File diff suppressed because one or more lines are too long

View File

@ -12,7 +12,7 @@
"console": "integratedTerminal",
"justMyCode": true,
// "args": ["--id", "38", "--read_type", "local", "--headless", "1"]
"args": ["--id", "[17]", "--headless", "0", "--user_data", "0"]
"args": ["--id", "[56]", "--headless", "0", "--user_data", "0"]
}
]
}

View File

@ -389,9 +389,9 @@ class BrowserThread(Thread):
self.judgeExecute(node, loopValue, loopPath, index)
# 执行完之后进行等待
if node["option"] != 0:
if node["option"] != 0 and node["option"] != 2:
waitTime = 0.01 # 默认等待0.01秒
if node["parameters"]["wait"] > 1:
if node["parameters"]["wait"] >= 1:
waitTime = node["parameters"]["wait"]
time.sleep(waitTime)
self.Log("Wait seconds after node executing: ", waitTime)
@ -780,6 +780,8 @@ class BrowserThread(Thread):
self.recordLog("Cannot find element:" +
path + ", please try to set the wait time before executing this operation")
print("找不到要点击的元素:" + path + ",请尝试在执行此操作前设置等待时间")
waitTime = float(para["wait"]) + 0.01 # 点击之后等待
time.sleep(waitTime) # 点击之后等待waitTime秒
if tempHandleNum != len(self.browser.window_handles): # 如果有新标签页的行为发生
self.browser.switch_to.window(self.browser.window_handles[-1]) # 跳转到新的标签页
self.history["handle"] = self.browser.current_window_handle