I would like to be able to run my unit tests across different browsers (FF/IE/Chrome) without having to modify the code to change what webdriver I am using. I am new to selenium testing and would appreciate any recommendations.
I would like to be able to do the following:
- run a particular test against a particular browser
- run all tests against a particular browser
- run all tests against all browsers
Here are some options I have considered but they don't meet my all my needs.
- Ask the user (via a Dialog window) which browser to run the test
against
- This approach meets condition #1 listed above but not 2 and 3.
- This approach would cause the user to be prompted for each test so it does not meet condition #2
- Store the default browser in a config file.
- The config file can be easily edited with a text editor
- This approach meets condition #1 and #2 but requires manually editing the config file before running the tests.
NUnit?