项目名:web_robot
github 地址:https://github.com/webgjc/web_robot
前言:之前做到一半的时候分享过这个插件
现在做的更完善了,再来分享一波
目前插件版本 V1.8.2
看看演示
{"case_name":"基本操作","case_process":[{"n":"0","opera":"newpage","tag":"body","value":"https://www.baidu.com/s?ie=UTF-8&wd=test","wait":"1"},{"n":"0","opera":"value","tag":"INPUT#kw","value":"天气","wait":"2"},{"n":"0","opera":"click","tag":"INPUT#su","value":"","wait":"1"}],"case_sourcecode":"","case_type":"process","control_url":"","sourcecode_url":".*"}
{"case_name":"取值事件用例","case_process":[{"n":"0","opera":"newpage","tag":"body","value":"http://blog.ganjiacheng.cn/","wait":"1"},{"n":"0","opera":"getvalue","tag":"HTML.macos.desktop.landscape > BODY > NAV.navbar.navbar-default.navbar-custom.navbar-fixed-top > DIV.container-fluid > DIV.navbar-header.page-scroll > A.navbar-brand","value":"title","wait":"3"},{"n":"0","opera":"pagejump","tag":"body","value":"https://www.baidu.com/s?ie=UTF-8&wd=test","wait":"2"},{"n":"0","opera":"value","tag":"INPUT#kw","value":"title","wait":"1"},{"n":"0","opera":"click","tag":"INPUT#su","value":"","wait":"1"}],"case_sourcecode":"","case_type":"process","control_url":"","sourcecode_url":".*"}
{"case_name":"百度去广告","case_process":[],"case_sourcecode":"Array.from(\n document.querySelectorAll('#content_left>div'))\n .forEach(el => \n />广告</.test(el.innerHTML) && el.parentNode.removeChild(el)\n );\nsetInterval(() => {\n try{\n Array.from(\n document.querySelectorAll('#content_left>div'))\n .forEach(el => \n />广告</.test(el.innerHTML) && el.parentNode.removeChild(el)\n )\n } catch(e){}\n}, 1000)\n","case_type":"sourcecode","control_url":"","sourcecode_url":"baidu.com.*","start_inject":true}
{"case_name":"定时喝水","case_process":[],"case_sourcecode":"alert(\"你该喝水咯\")","case_type":"sourcecode","control_url":"","last_runtime":1599706892179,"runtime":"60m","sourcecode_url":".*"}
1
timeance 2022-08-10 19:16:38 +08:00
看起来真不错,电商运营重复性工作太多了,真的很需要这类插件
|