webdriver启动时加载扩展--易于调试用.比如firebug等

public void startFirfoxAndConfirmProfile() {
            FirefoxProfile f = new FirefoxProfile();
            f.AddExtension(@"your xpi path");
            IWebDriver d = new FirefoxDriver(f);
        }
posted @ 2011-12-28 09:04  布瓜  阅读(212)  评论(0编辑  收藏  举报