has anyone solved this?
Whenever I have submit button, I have to go in workaround and send keys “Enter” to it. To be more specific:
WebDriver driver = new FirefoxDriver();
driver.get("my-test-site");
WebElement confirmBid = driver.findElement(By.id("mainForm:aucPanelId:1:finishEditBid"));
confirmBid.click();
does not work, nothing happens, value is not confirmed. However, if I change the last to:
Keys enter = Keys.ENTER;
confirmBid.sendKeys(enter.toString());
Works fine and the form is submitted.
However, the click(); command works fine on links.
Any idea why is that like this?
I have had some problems with that myself at times. Not sure why it happens but you can use…
to make it a little cleaner.