Headless drivers are used to run automated tests without the need for a graphical user interface (GUI). This can be useful in a number of situations, such as when running tests in a continuous integration environment, where there is no need to see the tests being run. It can also be useful for running tests on a server where there is no GUI installed.  There are a few ways you can visually investigate test failures when using headless drivers. One option is to use a tool like xvfb (X Virtual Framebuffer), which allows you to run tests in a virtual display. This allows you to run tests in a headless environment, but still capture screenshots and videos of the tests being run. Another option is to use a tool like VNC (Virtual Network Computing), which allows you to remotely connect to a display and view the tests being run in real-time.  It is also worth noting that some headless drivers, such as ChromeDriver and FirefoxDriver, have an option to run in "headless" mode, which means they will not actually launch a browser window, but will still run the tests and allow you to capture screenshots and videos.