-
Notifications
You must be signed in to change notification settings - Fork 478
/
网易严选-签到.js
32 lines (30 loc) · 897 Bytes
/
网易严选-签到.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
auto.waitFor();
var Maid = require("./common/Maid.js");
var maid = new Maid("com.netease.yanxuan");
var Unlock = require("./common/Unlock.js");
var unlock = new Unlock();
maid.before();
unlock.unlock();
maid.sleep(2);
maid.kill();
maid.sleep(2);
maid.launchActivity("com.netease.yanxuan.module.mainpage.activity.MainPageActivity");
maid.sleep(5);
if (id("btn_alert_negative").exists()) {
maid.clickIdCenter("btn_alert_negative"); //app更新弹出框
maid.sleep(1);
}
if (id("iv_trans_cancel_icon").exists()) {
maid.clickIdCenter("iv_trans_cancel_icon"); //广告\活动弹出框
maid.sleep(1);
}
maid.clickSelectorCenter(id("txt_mainpage_tab_title").text("个人"));
maid.sleep(4);
maid.clickIdCenter("user_points");
maid.sleep(4);
maid.clickTextCenter("签 到");
maid.sleep(2);
maid.click(560, 1120); // 签到成功后翻牌抽红包
maid.sleep(2);
maid.kill();
maid.after();