如果我没记错的话, (这种模式下,您的应用程序具有更多特权-更少的安全限制) ;因此,事实是启动的是Firefox,而不是Google Chrome。
如果要启动Google Chrome浏览器,则必须使用“ *chrome
” 以外的其他名称。
在交互模式下使用Selenium RC,如下所示:
$ java -jar selenium-server.jar -interactive
并getNewBrowserSession
没有正确使用命令:
cmd=getNewBrowserSession
我得到的浏览器列表是支持的:
23:43:09.317 INFO - Got result: Failed to start new browser session: Browser not supported:
(Did you forget to add a *?)
Supported browsers include:
*firefox
*mock
*firefoxproxy
*pifirefox
*chrome
*iexploreproxy
*iexplore
*firefox3
*safariproxy
*googlechrome
*konqueror
*firefox2
*safari
*piiexplore
*firefoxchrome
*opera
*iehta
*custom
on session null
因此,我想 而不是“ *chrome
” 。
我不在Windows上,所以我不能自己尝试…而且我在文档中找不到任何可以支持我的东西…不过,幸运的是,这可能会对您有所帮助…
无论如何,玩得开心!
附带说明:实际上,谷歌浏览器并不是发明“铬”一词的人; 它意味着很多东西,例如Chrome Mozilla或用户界面Chrome