Selenium Firefox不运行,打开时为空白

Selenium Firefox不运行,打开时为空白,selenium,Selenium,我正在使用几周前在Firefox中创建的脚本。当我加载它时,Firefox会打开,但会清空,不会运行 selenium = new DefaultSelenium("localhost", 4444, "*firefox C:\\Program Files (x86)\\Mozilla Firefox\\firefox.exe", "http://www.test.com/"); selenium.Start();

我正在使用几周前在Firefox中创建的脚本。当我加载它时,Firefox会打开,但会清空,不会运行

selenium = new DefaultSelenium("localhost", 
            4444, 
            "*firefox C:\\Program Files (x86)\\Mozilla Firefox\\firefox.exe", 
            "http://www.test.com/");
selenium.Start();
Firefox配置文件会妨碍您吗?它每次都会打开一个新的Firefox实例,但不会进入测试站点。

通过编写
”http://www.test.com/“
对于selenium实例,您只需为测试提供基本url即可。要导航到您的测试站点,您应该使用
selenium.open(“/”)
命令。导航到
“http://www.test.com/test.html“
您应该使用
selenium.open(“/test.html”)
等等