2021-11-16 00:42:29 +08:00
|
|
|
const elements = require('../elements');
|
2021-11-03 00:45:52 +08:00
|
|
|
|
|
|
|
async function setStatus(page, status) {
|
2021-11-16 00:42:29 +08:00
|
|
|
await page.waitForSelector(elements.firstUser);
|
|
|
|
await page.click(elements.firstUser);
|
|
|
|
await page.waitForSelector(elements.setStatus);
|
|
|
|
await page.click(elements.setStatus);
|
2021-11-03 00:45:52 +08:00
|
|
|
await page.waitForSelector(status);
|
|
|
|
await page.click(status);
|
|
|
|
}
|
|
|
|
|
2021-11-03 06:50:20 +08:00
|
|
|
exports.setStatus = setStatus;
|