I am working on an application which is compatible only with IE7 and IE8. I didn\'t know why but some suggested to use CSS over XPath while identifying the elements in IE. W
Using CSS locator is the best option, not only on IE, also on FF and Chrome. Also, xpath is always the worst choice, because it needs to parse the whole page to find a simple element, so if you want performance in your tests and you can avoid it, just do it.
Also, if you are using pageObjects I strongly recommend you to use cacheLookup, so the element will be located just once:
@CacheLookup
@FindBy(id="doLogin")
private WebElement loginButton;
Personally, I do the following: