(I\'ve looked at many other similar posts on SO and have unfortunately not been able to solve this problem, so here goes...)
I\'m using Selenium WebDriver (C# implementa
The following worked for me:
@FindBy(id = "submit_action")
WebElement submitButton_;
...
public void clickSubmit() {
if (driver_ instanceof InternetExplorerDriver) {
((JavascriptExecutor) driver_).executeScript("arguments[0].fireEvent('onclick');", submitButton_);
}
else {
submitButton_.click();
}
}
As fireEvent is only supported by IE hence the alternative.