您好, 欢迎来到 !    登录 | 注册 | | 设为首页 | 收藏本站

如何使用Selenium RC运行Google Chrome?

如何使用Selenium RC运行Google Chrome?

如果我没记错的话, (这种模式下,您的应用程序具有更多特权-更少的安全限制) ;因此,事实是启动的是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

Go 2022/1/1 18:13:50 有593人围观

撰写回答


你尚未登录,登录后可以

和开发者交流问题的细节

关注并接收问题和回答的更新提醒

参与内容的编辑和改进,让解决方法与时俱进

请先登录

推荐问题


联系我
置顶