Psdet
Psdet

Reputation: 689

Is there a way to run non-headless browser in TestCafe docker?

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?

Upvotes: 1

Views: 753

Answers (1)

aleks-pro
aleks-pro

Reputation: 1669

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.

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.

Upvotes: 6

Related Questions