I am currently working on automating an email test using JS.
var driver = new webdriver.Builder().withCapabilities(webdriver.Capabilities.chrome()).build();
until = webdriver.until;
driver.get('http://www.automationpractice.com');
driver.manage().window().maximize();
driver.findElement(webdriver.By.linkText("Sign in")).click();
driver.sleep(10000);
var emailInput = driver.findElement(webdriver.By.id("email_create"));
emailInput.sendKeys("<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="fc929d889d929d889d92888f9d8dcd8bbc8c90d28c90">[email protected]</a>");
The error message
UnhandledPromiseRejectionWarning: NoSuchElementError: no such element: Unable to locate element: {"method":"css selector","selector":"*[id="email_create"]"}
is being shown, even though I am certain that the selector exists. Can anyone provide assistance?