2021-11-18 04:07:14 +08:00
|
|
|
const e = require('../core/elements');
|
2021-11-03 00:45:52 +08:00
|
|
|
|
|
|
|
async function setStatus(page, status) {
|
2021-11-18 04:07:14 +08:00
|
|
|
await page.waitForSelector(e.firstUser);
|
|
|
|
await page.click(e.firstUser);
|
|
|
|
await page.waitForSelector(e.setStatus);
|
|
|
|
await page.click(e.setStatus);
|
|
|
|
await page.waitForSelector(status);
|
|
|
|
await page.click(status);
|
2021-11-03 00:45:52 +08:00
|
|
|
}
|
|
|
|
|
2021-12-04 01:01:36 +08:00
|
|
|
exports.setStatus = setStatus;
|