fix(切号): 切完只等(默认 15 秒)不再去点「我」刷新 —— wait_after 可调
用户实测要求:"去掉切完账号下拉刷新这一步,直接改成等待 15 秒"。 原来的做法是"回读不到就再点一次「我」页签"—— 在设备上看着像去点刷新,还可能打断 抖音换号后的整体重载。 · tasks/generic/task.py:切完后按 wait_after(默认 15s,步骤参数可调)静等,等完只回读、 **不再点任何东西**(读不到就多读几次,页面渲染有零点几秒抖动) · 参数落到位:STEP_TYPES / 骨架 build_switch_step / 编辑器面板 / 发布页就地编辑字段表 · 测试:用例里 wait_after=0.2(不然一跑就一分多钟) · 文档:TASK_DEV §3 的 switch_account 行 + research/U2_ELEMENT_SELECTORS §七(记下"只能等"这条实测教训)
This commit is contained in:
@@ -22,7 +22,7 @@ var STEP_LIB=[
|
||||
{type:'if_el',label:'条件判断',icon:'❓',cat:'flow',params:{selector_type:'xpath',selector_value:'',timeout:3,ocr_click:false,cmp_op:'',cmp_value:'',cmp_source:'',cmp_group:'',ident_type:'text',ident_value:'',then:[],else:[]}},
|
||||
{type:'mark_done',label:'记为已做',icon:'✅',cat:'flow',params:{selector_type:'text',selector_value:''}},
|
||||
{type:'read_account_name',label:'读取本机账号名字',icon:'🏷',cat:'flow',params:{selector_type:'xpath',selector_value:'',timeout:8,on_missing:'fail'}},
|
||||
{type:'switch_account',label:'切换账号',icon:'🔁',cat:'flow',params:{target:'var:target_name',target_value:'',switch_selector_type:'xpath',switch_selector_value:'',name_selector_type:'',name_selector_value:'',me_selector_type:'descriptionContains',me_selector_value:'我',timeout:8,verify:true,max_attempts:2,on_login_page:'stop'}},
|
||||
{type:'switch_account',label:'切换账号',icon:'🔁',cat:'flow',params:{target:'var:target_name',target_value:'',switch_selector_type:'xpath',switch_selector_value:'',name_selector_type:'',name_selector_value:'',me_selector_type:'descriptionContains',me_selector_value:'我',timeout:8,wait_after:15,verify:true,max_attempts:2,on_login_page:'stop'}},
|
||||
{type:'foreach_account',label:'循环本机待发的号',icon:'🔂',cat:'flow',params:{date_source:'today',fixed_date:'',retry_failed:true,max_accounts:0,children:[]}},
|
||||
{type:'notify',label:'发通知',icon:'🔔',cat:'flow',params:{title:'',message:'',level:'info'}},
|
||||
{type:'stop_self',label:'停止本设备',icon:'⛔',cat:'flow',params:{reason:''}},
|
||||
|
||||
@@ -751,6 +751,7 @@ var _RP_FIELDS = {
|
||||
['switch_selector_value', '选择器值(进「账号切换」列表那一下)', 'selval'],
|
||||
['me_selector_value', '「我」页签的定位描述', 'text'],
|
||||
['timeout', '超时(秒)', 'num'],
|
||||
['wait_after', '切完后等几秒再回读(默认 15)', 'num'],
|
||||
['verify', '切完回读校验(对不上就不发)', 'chk'],
|
||||
['max_attempts', '最多试几次', 'num'],
|
||||
['on_login_page', '遇到登录页', 'sel', [['stop', '停本设备(推荐)'],
|
||||
|
||||
Reference in New Issue
Block a user