juzjus10 / Epic-Account-Creator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

IMAP

Alexander-Ger-Reich opened this issue · comments

I want to write imap about it and now I am facing a problem. If he tries to enter the code from the mail into the field nothing happens. Do you have an idea why it doesn't work?

function getVerificationCode(verification_code) {
    (async () => {
		try {
        //await console.log("Verification Codeeeeeeeeeeeeeeee: " + verification_code);
        await driver.wait(until.elementLocated(By.name('code')), 150000);
        await driver.findElement(By.name('code')).sendKeys(verification_code);
        await driver.findElement(By.id('continue')).click();
        return verification_code;
        } catch (e)
		{
			console.log("ERROR: " + e);
		}
    })();
}
function getEmail(date) {
//only for test
verification_code = "123456";
	
getVerificationCode(verification_code );
}

it was solved with clicks