case_tab_mine.js
1.33 KB
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
33
34
35
36
37
38
39
40
41
42
43
44
const wd = require('wd');
const {describe} = require('../../libs/driver');
const {ANDROID_TAB_MINE} = require('../../scene-types/scene-types');
const {FIND_VIEW_OVER_TIME, ACTION_PAUSE_TIME} = require('../../config/constant');
describe(ANDROID_TAB_MINE,'安卓个人中心', async(driver) => {
// 暂停
await driver.sleep(ACTION_PAUSE_TIME);
// 个人中心tab
touchTab = await driver.waitForElementById('com.yoho:id/tabMain_radioImage_my_rl',10000);
await touchTab.click();
// 暂停
await driver.sleep(ACTION_PAUSE_TIME);
// 有货有赚
touchTab = await driver.waitForElementById('com.yoho:id/mine_center_ufo_union_first_layout',10000);
await touchTab.click();
// 暂停
await driver.sleep(ACTION_PAUSE_TIME);
// 返回个人中心
touchTab = await driver.waitForElementById('com.yoho:id/back_btn',10000);
await touchTab.click();
// 暂停
await driver.sleep(ACTION_PAUSE_TIME);
// 球鞋交易
touchTab = await driver.waitForElementById('com.yoho:id/mine_center_ufo_union_second_layout',10000);
await touchTab.click();
// 暂停
await driver.sleep(ACTION_PAUSE_TIME);
// 返回个人中心
touchTab = await driver.waitForElementById('com.yoho:id/back_btn',10000);
await touchTab.click();
// 暂停
await driver.sleep(ACTION_PAUSE_TIME);
});