You may need different code for FireFox and IE. This is because IE does not recognise complex XPath expressions.
This will work in FF
In IE it needs to be simplified to:
Below are the 3 key things which you need to configure in order for Selenium to work in Internet Explorer 8
- Tools->Internet Options->Security tab
Set the security level for all zones to high. This is due to all zones have to be on the same level and Restricted Sites can only be set to high.
- Tools->Internet Options->Security tab->Custom level->Scripting
- Install the correct version of InternetExplorerDriver – depending on how many bits is your machine