I am trying to login a page.
I entered the e-mail & password inputs by element.sendKeys() without any error.
After that I need to click the 'loginButton' button. But the button is defined as non keyboard-focusable.
When I run the automation, the button is clicked. But the automation is not continue with the next page (main page); just reloads the same page with empty inputs.
I tried several ways to click the button and also tried to enter by using 'ENTER' key;
// **1.**
loginButton.click();
// **2.**
robot.keyPress(KeyEvent.VK_ENTER);
// **3.**
Actions act = new Actions(dDriver);
act.moveToElement(driver.findElement(By.id("loginButton"))).click().build().perform();
// **4.**
JavascriptExecutor executor;
All of them seems that I can click the button but after that as I mentioned, the page is reloaded, not continue with the next page.
What else can I try?