I have tested a scenario where I have to enter user credentials and click on login button using selenium2Selenium2 (version selenium2.19-standalone.jar)
driver.findElement(By.id("emailIdLogin")).sendKeys("[email protected]");
driver.findElement(By.id("passwordLogin")).sendKeys("test1234");
driver.findElement(By.id("submitLogin")).click
On click is performed on submit button but page is not loaded to new page. Whereas when I use driver.findElement(By.id("submitLogin")).sendKeys(Keys.ENTER)
page is loaded to the next page. Please explain why click command is not loading the new page.
I am using Firefox 8.