IMAP
Alexander-Ger-Reich opened this issue · comments
Alexander-Ger-Reich commented
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 );
}
Alexander-Ger-Reich commented
it was solved with clicks