You may need different code for FireFox and IE. This is because IE does not recognise complex XPath expressions.

For eg:

This will work in FF

driver.FindElement(By.XPath(“/html/body[@id=’ctl00__objBodyTag’]/form[@id=’aspnetForm’]/div[@id=’__Page’]/div[@id=’page’]/div[@id=”]/div/div/div/div[@id=’expandPanelsPersonalDetails’]/div[11]/img[1]”)).Click(); 

In IE it needs to be simplified to:

driver.FindElement(By.XPath(“//div[@id=’expandPanelsPersonalDetails’]/div[11]/img[1]”)).Click();