Testing with a selenium driver in Java without opening any browser

后端 未结 4 1522
暖寄归人
暖寄归人 2020-12-17 00:40

I need to test with selenium chrome driver in Java. But chrome window should\'t be opened. Assume this a product and no window should be opened.

I\'ve also looked at

4条回答
  •  南方客
    南方客 (楼主)
    2020-12-17 01:24

    Go with PhantomJS but if running them in chromedriver is required and you have the resources, this blog has a good recipe on running headless selenium with chrome. Requiring you to download the following...

    • VirtualBox
    • Vagrant
    • NodeJS

    If you plan to implement Jenkins or any other CI in the future, I strongly suggest going with PhantomJS though.

提交回复
热议问题