本文介绍了有没有办法在TestCafe泊坞窗中运行非无头浏览器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在运行TestCafe泊坞窗,希望看到浏览器,以便了解发生了什么,并且默认情况下不以无头模式运行它.有可能吗?

I'm running TestCafe docker and would like to see the browser so that I know what's happening and not run it in a headless mode by default. Is it possible?

推荐答案

要以非无头模式在docker容器中运行浏览器,您需要启动 Xvfb 和一个窗口管理器(例如 Fluxbox ),然后再启动TestCafe.这些任务已经在官方TestCafe泊坞窗映像中完成- github.com/DevExpress/testcafe/树/管理员/泊坞窗.

To run a browser in docker containers in non-headless mode, you need to start Xvfb and a window manager (e,g, Fluxbox) before starting TestCafe. These tasks are already completed in the official TestCafe docker image - github.com/DevExpress/testcafe/tree/master/docker.

要查看浏览器,您需要访问Xvbf的虚拟显示.为此,请使用VNC服务器.请参考以下主题,详细描述所有三个任务: https://medium.com/dot-debug/running-chrome-in-a-docker-container-a55e7f4da4a8 .

To see the browser, you need to access Xvbf's virtual display. To do this, use the VNC server. Please, refer to the following topic describing all three tasks in detail: https://medium.com/dot-debug/running-chrome-in-a-docker-container-a55e7f4da4a8.

这篇关于有没有办法在TestCafe泊坞窗中运行非无头浏览器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-10 11:29