哪些驱动程序支持“无浏览器"/“无头"驱动程序?测试? [英] Which drivers support "no-browser"/"headless" testing?

查看:154
本文介绍了哪些驱动程序支持“无浏览器"/“无头"驱动程序?测试?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

实际上,我想在不想打开任何浏览器的服务器上运行我的硒代码.但是我感到困惑的是,哪个webdriver用于执行所有任务的服务器(我从某个站点下载一些文件并存储在我的服务器中).

Actually I want to run my selenium code on server where dont want open the any browser. But I am confused which webdriver is use for the server which do all task (where I download some files from some site and store in my server).

推荐答案

要通过 Selenium 执行测试套件,而无需打开任何浏览器,则可以使用任何浏览器客户端" :

To execute your Test Suite through Selenium without opening any browser you can use any of the Browser Client from the following list :

  • Headless Chrome : Here you can find an working example.
  • Headless Firefox : Here you can find an working example.
  • PhantomJS : Here you can find an working example.
  • HtmlUnitDriver : Here you can find an working example.
  • headless-selenium-for-win : Here you can find a detailed discussion.

Headless Browser 是一个没有以下内容的网络浏览器通过编程方式控制的图形用户界面,用于自动化,测试和其他目的.

Headless Browser is a web browser without a Graphical User Interface controlled programmatically used for automation, testing, and other purposes.

这些 Headless Browser Engines 完全呈现网页或在虚拟DOM中运行JavaScript:

These Headless Browser Engines fully render web pages or run JavaScript in a virtual DOM :

这些 Headless Multi Drivers 库可以控制多个浏览器引擎(通常使用Selenium):

These Headless Multi Drivers libraries can control multiple browser engines (typically using Selenium) :

这篇关于哪些驱动程序支持“无浏览器"/“无头"驱动程序?测试?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆