When I run the following code in Firefox it runs correctly, but in IE8 it says xpath cannot be evaluated or does not result in a WebElement.
webDriver.findEl
IE 8 need this top 3 line compulsory in selenium web driver
DesiredCapabilities ieCapabilities = DesiredCapabilities.internetExplorer();
ieCapabilities.setCapability(InternetExplorerDriver.INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS, true);
WebDriver webDriver= new InternetExplorerDriver(ieCapabilities);
Please change Xpath by Id:
webDriver.findElement(By.id("submitForm")).click();