Here is the coding snippet:
driver.get(url).then(function(){
txtFnn = driver.findElement(webdriver.By.xpath(xpath));
return txtFnn;
}).then(function(){
txtFnn.sendkeys("12345678");
})
Issue:
An error occurred: TypeError - txtFnn.sendkeys is not a function