From e79eecc669aec6fc828d956ffdd596e6d90d0854 Mon Sep 17 00:00:00 2001 From: naibo Date: Sat, 23 Dec 2023 13:12:47 +0800 Subject: [PATCH] =?UTF-8?q?JavaScript=E8=BE=93=E5=85=A5=E6=96=87=E5=AD=97?= =?UTF-8?q?=EF=BC=81=EF=BC=81=EF=BC=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ElectronJS/tasks/308.json | 1 - 1 file changed, 1 deletion(-) delete mode 100644 ElectronJS/tasks/308.json diff --git a/ElectronJS/tasks/308.json b/ElectronJS/tasks/308.json deleted file mode 100644 index dd17203..0000000 --- a/ElectronJS/tasks/308.json +++ /dev/null @@ -1 +0,0 @@ -{"id":308,"name":"NUS Student Work Scheme","url":"https://inetapps.nus.edu.sg/nsws/app/login","links":"https://inetapps.nus.edu.sg/nsws/app/login","create_time":"2023-12-23 12:24:26","update_time":"2023-12-23 12:30:22","version":"0.6.0","saveThreshold":10,"quitWaitTime":60,"environment":0,"maximizeWindow":0,"maxViewLength":15,"recordLog":1,"outputFormat":"xlsx","saveName":"current_time","dataWriteMode":1,"inputExcel":"","startFromExit":0,"pauseKey":"p","containJudge":false,"browser":"chrome","removeDuplicate":0,"desc":"https://inetapps.nus.edu.sg/nsws/app/login","inputParameters":[{"id":0,"name":"urlList_0","nodeId":1,"nodeName":"打开网页","value":"https://inetapps.nus.edu.sg/nsws/app/login","desc":"要采集的网址列表,多行以\\n分开","type":"text","exampleValue":"https://inetapps.nus.edu.sg/nsws/app/login"},{"id":1,"name":"inputText_1","nodeName":"输入文字","nodeId":3,"desc":"要输入的文本,如京东搜索框输入:电脑","type":"text","exampleValue":"e0546263@u.nus.edu","value":"e0546263@u.nus.edu"},{"id":2,"name":"inputText_2","nodeName":"输入文字","nodeId":4,"desc":"要输入的文本,如京东搜索框输入:电脑","type":"text","exampleValue":"Qw982311099.","value":"Qw982311099."},{"id":3,"name":"loopText_3","nodeId":11,"nodeName":"循环输入文字","desc":"要输入的文本/网址,多行以\\n分开","type":"text","exampleValue":"01/JS(\"return new Date().getMonth()+1\")/2023\n08/JS(\"return new Date().getMonth()+1\")/2023\n15/JS(\"return new Date().getMonth()+1\")/2023\n22/JS(\"return new Date().getMonth()+1\")/2023","value":"01/JS(\"return new Date().getMonth()+1\")/2023\n08/JS(\"return new Date().getMonth()+1\")/2023\n15/JS(\"return new Date().getMonth()+1\")/2023\n22/JS(\"return new Date().getMonth()+1\")/2023"},{"id":4,"name":"inputText_4","nodeName":"输入文字","nodeId":13,"desc":"要输入的文本,如京东搜索框输入:电脑","type":"text","exampleValue":"18","value":"18"},{"id":5,"name":"inputText_5","nodeName":"输入文字","nodeId":14,"desc":"要输入的文本,如京东搜索框输入:电脑","type":"text","exampleValue":"45","value":"45"}],"outputParameters":[],"graph":[{"index":0,"id":0,"parentId":0,"type":-1,"option":0,"title":"root","sequence":[1,2,3,4,5,7,8,11],"parameters":{"history":1,"tabIndex":0,"useLoop":false,"xpath":"","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":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,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"url":"https://inetapps.nus.edu.sg/nsws/app/login","links":"https://inetapps.nus.edu.sg/nsws/app/login","maxWaitTime":10,"scrollType":0,"scrollCount":1,"scrollWaitTime":1,"cookies":""}},{"id":2,"index":2,"parentId":0,"type":0,"option":2,"title":"点击NUS St...","sequence":[],"isInLoop":false,"position":1,"parameters":{"history":4,"tabIndex":-1,"useLoop":false,"xpath":"//*[contains(@class, \"gx-2\")]/div[1]/div[1]/a[1]","iframe":false,"wait":2,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"scrollType":0,"scrollCount":1,"scrollWaitTime":1,"clickWay":0,"newTab":0,"maxWaitTime":10,"params":[],"alertHandleType":0,"allXPaths":["/html/body/app-root[1]/app-login-safe[1]/div[1]/div[1]/div[2]/div[1]/div[3]/div[1]/div[1]/div[1]/div[1]/a[1]","//a[contains(., 'NUS Studen')]","//A[@class='btn btn-primary text-white']","/html/body/app-root/app-login-safe/div/div/div/div/div[last()-1]/div/div/div/div/a[last()-1]"]}},{"id":3,"index":3,"parentId":0,"type":0,"option":4,"title":"输入文字","sequence":[],"isInLoop":false,"position":2,"parameters":{"history":5,"tabIndex":-1,"useLoop":false,"xpath":"//*[@id=\"userNameInput\"]","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"value":"e0546263@u.nus.edu","index":0,"allXPaths":["/html/body/div[2]/div[2]/div[1]/main[1]/div[1]/div[1]/div[1]/form[1]/div[2]/div[1]/input[1]","//input[contains(., '')]","id(\"userNameInput\")","//INPUT[@class='text fullWidth']","//INPUT[@name='UserName']","/html/body/div[last()-3]/div/div/main/div/div/div/form/div/div[last()-3]/input"]}},{"id":4,"index":4,"parentId":0,"type":0,"option":4,"title":"输入文字","sequence":[],"isInLoop":false,"position":3,"parameters":{"history":5,"tabIndex":-1,"useLoop":false,"xpath":"//*[@id=\"passwordInput\"]","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"value":"Qw982311099.","index":0,"allXPaths":["/html/body/div[2]/div[2]/div[1]/main[1]/div[1]/div[1]/div[1]/form[1]/div[2]/div[2]/input[1]","//input[contains(., '')]","id(\"passwordInput\")","//INPUT[@class='text fullWidth']","//INPUT[@name='Password']","/html/body/div[last()-3]/div/div/main/div/div/div/form/div/div[last()-2]/input"]}},{"id":5,"index":5,"parentId":0,"type":0,"option":2,"title":"点击Sign i...","sequence":[],"isInLoop":false,"position":4,"parameters":{"history":5,"tabIndex":-1,"useLoop":false,"xpath":"//*[@id=\"submitButton\"]","iframe":false,"wait":20,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"scrollType":0,"scrollCount":1,"scrollWaitTime":1,"clickWay":0,"newTab":0,"maxWaitTime":10,"params":[],"alertHandleType":0,"allXPaths":["/html/body/div[2]/div[2]/div[1]/main[1]/div[1]/div[1]/div[1]/form[1]/div[2]/div[4]/span[1]","//span[contains(., 'Sign in')]","id(\"submitButton\")","//SPAN[@class='submit']","/html/body/div[last()-3]/div/div/main/div/div/div/form/div/div/span"]}},{"id":-1,"index":6,"parentId":0,"type":0,"option":3,"title":"提取数据","sequence":[],"isInLoop":false,"position":5,"parameters":{"history":7,"tabIndex":-1,"useLoop":false,"xpath":"","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"clear":0,"newLine":1,"params":[{"nodeType":4,"contentType":0,"relative":false,"name":"参数1_图片地址","desc":"","extractType":0,"relativeXPath":"/html/body/app-root[1]/div[1]/div[1]/img[1]","allXPaths":["/html/body/app-root[1]/div[1]/div[1]/img[1]","//img[contains(., '')]","/html/body/app-root/div/div/img"],"exampleValues":[{"num":0,"value":"assets/images/Spinner.gif"}],"unique_index":"3ocguj5rafhlqhk493w","iframe":false,"default":"","paraType":"text","recordASField":1,"beforeJS":"","beforeJSWaitTime":0,"JS":"","JSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"downloadPic":0,"splitLine":0}]}},{"id":6,"index":7,"parentId":0,"type":0,"option":2,"title":"点击1\nALLO...","sequence":[],"isInLoop":false,"position":5,"parameters":{"history":7,"tabIndex":-1,"useLoop":false,"xpath":"//*[contains(@class, \"nsws-content\")]/app-student-dashboard[1]/div[1]/div[3]/div[3]","iframe":false,"wait":20,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"scrollType":0,"scrollCount":1,"scrollWaitTime":1,"clickWay":0,"newTab":0,"maxWaitTime":10,"params":[],"alertHandleType":0,"allXPaths":["/html/body/app-root[1]/app-student[1]/div[1]/div[1]/app-student-dashboard[1]/div[1]/div[3]/div[3]","//div[contains(., '1ALLOCATED')]","//DIV[@class='dashboard-item']","/html/body/app-root/app-student/div/div[last()-1]/app-student-dashboard/div/div[last()-3]/div"]}},{"id":7,"index":8,"parentId":0,"type":0,"option":2,"title":"点击Server...","sequence":[],"isInLoop":false,"position":6,"parameters":{"history":8,"tabIndex":-1,"useLoop":false,"xpath":"//*[contains(@class, \"nsws-table\")]/tbody[1]/tr[1]/td[2]","iframe":false,"wait":5,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"scrollType":0,"scrollCount":1,"scrollWaitTime":1,"clickWay":0,"newTab":0,"maxWaitTime":10,"params":[],"alertHandleType":0,"allXPaths":["/html/body/app-root[1]/app-student[1]/div[1]/div[1]/app-manage-jobs[1]/app-student-job-list[1]/div[1]/div[1]/div[1]/div[1]/tabset[1]/div[1]/tab[1]/app-nsws-data-table-v2[1]/div[1]/table[1]/tbody[1]/tr[1]/td[2]","//td[contains(., 'Server Adm')]","//TD[@class='text-left data-table-row-clickable']","/html/body/app-root/app-student/div/div[last()-1]/app-manage-jobs/app-student-job-list/div/div/div/div/tabset/div/tab[last()-1]/app-nsws-data-table-v2/div[last()-2]/table/tbody/tr/td[last()-9]"]}},{"id":-1,"index":9,"parentId":0,"type":1,"option":8,"title":"循环点击:ADD NEW","sequence":[],"isInLoop":false,"position":8,"parameters":{"history":9,"tabIndex":-1,"useLoop":false,"xpath":"","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"scrollType":0,"scrollCount":1,"scrollWaitTime":1,"loopType":0,"pathList":"","code":"","waitTime":0,"exitCount":0,"exitElement":"//body","historyWait":2,"breakMode":0,"breakCode":"","breakCodeWaitTime":0,"skipCount":0,"allXPaths":["/html/body/app-root[1]/app-student[1]/div[1]/div[1]/app-manage-jobs[1]/app-student-timesheet-hourly[1]/div[1]/div[1]/div[1]/button[1]","//button[contains(., 'ADD NEW')]","//BUTTON[@class='btn btn-primary']","/html/body/app-root/app-student/div/div[last()-1]/app-manage-jobs/app-student-timesheet-hourly/div/div[last()-1]/div/button"]}},{"id":9,"index":10,"parentId":8,"type":0,"option":2,"title":"点击ADD NE...","sequence":[],"isInLoop":true,"position":0,"parameters":{"history":9,"tabIndex":-1,"useLoop":false,"xpath":"//*[contains(@class, \"nsws-content\")]/app-manage-jobs[1]/app-student-timesheet-hourly[1]/div[1]/div[1]/div[1]/button[1]","iframe":false,"wait":2,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"scrollType":0,"scrollCount":1,"scrollWaitTime":1,"clickWay":0,"newTab":0,"maxWaitTime":10,"params":[],"alertHandleType":0,"allXPaths":["/html/body/app-root[1]/app-student[1]/div[1]/div[1]/app-manage-jobs[1]/app-student-timesheet-hourly[1]/div[1]/div[1]/div[1]/button[1]","//button[contains(., 'ADD NEW')]","//BUTTON[@class='btn btn-primary']","/html/body/app-root/app-student/div/div[last()-1]/app-manage-jobs/app-student-timesheet-hourly/div/div[last()-1]/div/button"]}},{"id":8,"index":11,"parentId":0,"type":1,"option":8,"title":"循环输入文字","sequence":[10,12,13,14,15],"isInLoop":false,"position":7,"parameters":{"history":10,"tabIndex":-1,"useLoop":false,"xpath":"//*[@id=\"job_date\"]","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"scrollType":0,"scrollCount":1,"scrollWaitTime":1,"loopType":3,"pathList":"","textList":"01/JS(\"return new Date().getMonth()+1\")/2023\n08/JS(\"return new Date().getMonth()+1\")/2023\n15/JS(\"return new Date().getMonth()+1\")/2023\n22/JS(\"return new Date().getMonth()+1\")/2023","code":"","waitTime":0,"exitCount":0,"exitElement":"//body","historyWait":2,"breakMode":0,"breakCode":"","breakCodeWaitTime":0,"skipCount":0,"allXPaths":["/html/body/app-root[1]/app-student[1]/div[1]/div[1]/app-manage-jobs[1]/app-student-timesheet-form[1]/div[1]/form[1]/div[1]/div[1]/div[1]/div[1]/input[1]","//input[contains(., '')]","id(\"job_date\")","//INPUT[@class='form-control ng-untouched ng-pristine ng-valid']","/html/body/app-root/app-student/div/div[last()-1]/app-manage-jobs/app-student-timesheet-form/div/form/div[last()-2]/div/div/div/input"]}},{"id":10,"index":12,"parentId":8,"type":0,"option":4,"title":"输入文字","sequence":[],"isInLoop":true,"position":1,"parameters":{"history":10,"tabIndex":-1,"useLoop":true,"xpath":"//*[@id=\"job_date\"]","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"value":"01/12/2023","index":0,"allXPaths":["/html/body/app-root[1]/app-student[1]/div[1]/div[1]/app-manage-jobs[1]/app-student-timesheet-form[1]/div[1]/form[1]/div[1]/div[1]/div[1]/div[1]/input[1]","//input[contains(., '')]","id(\"job_date\")","//INPUT[@class='form-control ng-untouched ng-pristine ng-valid']","/html/body/app-root/app-student/div/div[last()-1]/app-manage-jobs/app-student-timesheet-form/div/form/div[last()-2]/div/div/div/input"]}},{"id":11,"index":13,"parentId":8,"type":0,"option":4,"title":"输入文字","sequence":[],"isInLoop":true,"position":2,"parameters":{"history":11,"tabIndex":-1,"useLoop":false,"xpath":"//*[contains(@class, \"timesheet-payable\")]/div[3]/div[1]/app-nsws-timepicker[1]/table[1]/tr[2]/td[1]/input[1]","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"value":"18","index":0,"allXPaths":["/html/body/app-root[1]/app-student[1]/div[1]/div[1]/app-manage-jobs[1]/app-student-timesheet-form[1]/div[1]/form[1]/div[2]/div[1]/div[3]/div[1]/app-nsws-timepicker[1]/table[1]/tr[2]/td[1]/input[1]","//input[contains(., '')]","//INPUT[@class='form-control ng-untouched ng-pristine ng-valid']","/html/body/app-root/app-student/div/div[last()-1]/app-manage-jobs/app-student-timesheet-form/div/form/div[last()-1]/div[last()-2]/div[last()-2]/div/app-nsws-timepicker/table/tr[last()-1]/td[last()-2]/input"]}},{"id":12,"index":14,"parentId":8,"type":0,"option":4,"title":"输入文字","sequence":[],"isInLoop":true,"position":3,"parameters":{"history":11,"tabIndex":-1,"useLoop":false,"xpath":"//*[contains(@class, \"timesheet-payable\")]/div[3]/div[1]/app-nsws-timepicker[1]/table[1]/tr[2]/td[3]/input[1]","iframe":false,"wait":0,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"value":"45","index":0,"allXPaths":["/html/body/app-root[1]/app-student[1]/div[1]/div[1]/app-manage-jobs[1]/app-student-timesheet-form[1]/div[1]/form[1]/div[2]/div[1]/div[3]/div[1]/app-nsws-timepicker[1]/table[1]/tr[2]/td[3]/input[1]","//input[contains(., '')]","//INPUT[@class='form-control ng-untouched ng-pristine ng-valid']","/html/body/app-root/app-student/div/div[last()-1]/app-manage-jobs/app-student-timesheet-form/div/form/div[last()-1]/div[last()-2]/div[last()-2]/div/app-nsws-timepicker/table/tr[last()-1]/td/input"]}},{"id":13,"index":15,"parentId":8,"type":0,"option":2,"title":"点击SAVE A...","sequence":[],"isInLoop":true,"position":4,"parameters":{"history":11,"tabIndex":-1,"useLoop":false,"xpath":"//*[contains(@class, \"nsws-action-buttons\")]/button[1]","iframe":false,"wait":5,"waitType":0,"beforeJS":"","beforeJSWaitTime":0,"afterJS":"","afterJSWaitTime":0,"waitElement":"","waitElementTime":10,"waitElementIframeIndex":0,"scrollType":0,"scrollCount":1,"scrollWaitTime":1,"clickWay":0,"newTab":0,"maxWaitTime":10,"params":[],"alertHandleType":0,"allXPaths":["/html/body/app-root[1]/app-student[1]/div[1]/div[1]/app-manage-jobs[1]/app-student-timesheet-form[1]/div[1]/form[1]/div[3]/button[1]","//button[contains(., 'SAVE AS DR')]","//BUTTON[@class='btn btn-primary']","/html/body/app-root/app-student/div/div[last()-1]/app-manage-jobs/app-student-timesheet-form/div/form/div/button[last()-1]"]}}]} \ No newline at end of file