changes
parent
658f57cd59
commit
b408abd83d
11
utils.js
11
utils.js
|
@ -97,17 +97,8 @@ const tryTemuLogin = async function (page, username, password) {
|
|||
await page.click(signUpPopDialogSelector);
|
||||
}
|
||||
|
||||
|
||||
// click on Sign in link
|
||||
const selector = "div._31ia9mDL._3n05KUVj._1fE9CAB_";
|
||||
await page.waitForSelector(selector, { timeout: 5000 }).catch(() => {});
|
||||
const elementExists = (await page.$(selector)) !== null;
|
||||
if (elementExists) {
|
||||
await page.click(selector);
|
||||
}
|
||||
|
||||
// email input
|
||||
const inputSelectors = "input._3s66f8p-";
|
||||
const inputSelectors = "div._7grqZ_jK input._3s66f8p-";
|
||||
await page.waitForSelector(inputSelectors, { timeout: 5000 }).catch((e) => {
|
||||
console.log(e)
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue