Handle IE the TroubleMaker

Click Issue
IE driver uses native Windows events to perform mouse and keyboard operations, and that result in unexpected behavior.
Get around this issue by turning off nativeEvent when you launch your browser:

DesiredCapabilities capabilities = DesiredCapabilities.internetExplorer();
capabilities.setCapability(InternetExplorerDriver.NATIVE_EVENTS, false);
///…. More capabilities there ….
WebDriver driver = new InternetExplorerDriver(capabilities);

CSS Locator Issue
IE 11 and MS Edge support CSS 3 selectors, but versions 7 and 8 only support General Siblings and Attribute selectors. If you need to test against these versions of IE, you will need to use different selectors.