I have been experimenting with creating a login page and encountered an issue even after passing valid credentials using automation code:
Login Failed.
Using Selenium webdriver with Java on Eclipse as the programming language.
I attempted the standard method:
WebElement Login = driver.findElement(By.className("flex-signup"));
Login.click();
WebElement EmailAdd = driver.findElement(By.id("emailAddress"));
EmailAdd.sendKeys("************");
WebElement Passwd = driver.findElement(By.id("****"));
Passwd.sendKeys("*******");
I also tried an alternative approach using JavaScript driver, but it did not work on the application either.
JavascriptExecutor jse = (JavascriptExecutor)driver;
jse.executeScript("arguments[0].value='*************';" ,****);
jse.executeScript("document.getElementById('****').value='**********';");
WebElement BLogin = driver.findElement(By.className("ladda-label"));
jse.executeScript("arguments[0].click();", BLogin);
Since the application is in JavaScript, I utilized the JavaScript driver as well, but encountered the same outcome.