安装:
1. Selenium IDE 插件到 firefox(录制导出脚本)
2. Nunit http://www.nunit.org/
下载:
1. http://code.google.com/p/selenium/downloads/list
3. http://download.csdn.net/detail/flysnow_z/1611057 (nunit.framework.dll)
添加引用:
using OpenQA.Selenium;
using OpenQA.Selenium.IE;
using OpenQA.Selenium.Support.UI;
using NUnit.Framework;
运行:在Visual Studio 的Solution Explorer里右击你的单元测试工程,选择 test with 'Unit'.