Questions tagged [headless]

Headless systems are those which do not support standard user interface devices, such as monitors, keyboards and mice.

Headless systems are those which do not support standard user interface devices, such as monitors, keyboards and mice.

1191 questions
11
votes
1 answer

Running chrome headless on linux without xorg

Is it possible to install and run chrome headless on a headless Linux box without installing the audio and xorg dependencies? If not, then is there a special headless build of chrome/chromium which doesn't pull xorg and audio libs?
ccpizza
  • 28,968
  • 18
  • 162
  • 169
11
votes
2 answers

headless chrome capture screen video or animation

I try to capture some animations from a website and stitch them together using ffmpeg. As far as I understand the docs startScreencast is the way to go. If I understand that right I can start the screencast with await Page.startScreencast({format:…
t_io
  • 1,952
  • 1
  • 19
  • 27
11
votes
3 answers

Spring Boot - infinite loop service

I want to build a headless application which will query the DB in infinite loop and perform some operations in certain conditions (e.g. fetch records with specific values and when found launch e-mail sending procedure for each message). I want to…
Pawel Urban
  • 1,316
  • 1
  • 12
  • 28
11
votes
2 answers

How to test JavaFX 2 in a headless environment?

I am trying to automate testing for a JavaFX 2 application running on Java 7u6 with the integrated JavaFX 2.2. To that end, I have built and integrated Jemmy3 and JemmyFX into my build environment. A simple smoke test runs on all relevant OSs. As a…
Urs Reupke
  • 6,791
  • 3
  • 35
  • 49
11
votes
3 answers

How to set java system properties globally on OS X?

Short story I need a system level way to set the java.awt.headless property to true for all java invocations. That is, using -Djava.awt.headless=true is not an option, since java is being invoked from places I don't have access to (e.g. from within…
Blanka
  • 7,381
  • 3
  • 23
  • 20
10
votes
2 answers

DeprecationWarning: headless property is deprecated, instead use add_argument('--headless') or add_argument('--headless=new') on Selenium 4.8.0 Python

I am trying to execute a basic program using Selenium 4.8.0 Python clients in headless mode: from selenium import webdriver from selenium.webdriver.chrome.options import Options from selenium.webdriver.chrome.service import Service options =…
10
votes
2 answers

Jasperreports not working on Linux server without X11: "Error initializing graphic environment."

I have a huge problem. I was coding an app which is using Jasperreports. Everything was perfectly fine when I was working locally. But then, when I have dockerized my app, when I run the method that should produce an PDF file, I get an…
hc0re
  • 1,806
  • 2
  • 26
  • 61
10
votes
1 answer

How to use --screenshot in headless firefox in Selenium with python

Using @DebanjanB's reply in How to make firefox headless programatically in Selenium with python?, I'm trying to use his code and change it to use --screenshot argument, but it's not working. This is my code from selenium import webdriver from…
nurub
  • 333
  • 2
  • 11
10
votes
2 answers

Headless Chrome is not redirecting

We're using headless Chrome for an application testing. We have a page that refuses to redirect in headless mode but redirects perfectly fine when not running headless. The response header contains the URL to redirect to, and a 302 status code is…
Nael
  • 1,479
  • 1
  • 14
  • 20
10
votes
2 answers

Run OpenGL on AWS GPU instances with Ubuntu

I'm trying to get opengl working for headless offscreen rendering on a Amazon p2 instance with Ubuntu Ubuntu Server 16.04. After instance creation I've installed the appropriate nvidia drivers according to this amazon article, and they seem to be…
Filidor Wiese
  • 664
  • 8
  • 16
10
votes
1 answer

Using Headless FireFox to Save All HTML files using command line in Linux

Using shell_exec with Xvfb and FireFox currently to capture screen shots. However, need to download the entire html (e.g. Save Page As --> Web Page complete.) to a directory using shell_exec. Have looked at all the different option available in…
user2036418
  • 101
  • 1
  • 3
10
votes
5 answers

How do I make Python, QT, and Webkit work on a headless server?

I have Debian Linux server that I use for a variety of things. I want it to be able to do some web-scraping jobs I need done regularly. This code can be found here. import sys from PyQt4.QtGui import * from PyQt4.QtCore import * from…
Brigand
  • 84,529
  • 20
  • 165
  • 173
9
votes
1 answer

Headless UI open one of the Disclosure's on init

I'm having trouble opening one of the 2 Disclosure. Attached below is what trying to achieve this and when I add the static prop it keeps it open indefinitely.
Ishai A.
  • 103
  • 1
  • 6
9
votes
1 answer

Google Chrome Headless Error "Not supported" When using getDisplayMedia trying to record screen from Chrome Tab in Puppeteer

I am using Puppeteer latest version with Chromium 80 and I'm trying to record video from page in chrome headless and turned on all these flags: { headless: true, devtools: false, args: [ '--no-sandbox', '--allow-insecure-localhost', …
9
votes
4 answers

Puppeteer page doesn't want to load totally in headless mode

Here is my code: // Open the browser let browser = await puppeteer.launch({ args: ["--no-sandbox"] }); let page = await browser.newPage(); navPromise = page.waitForSelector('#js_boite_reception').then(() => { …
Androz2091
  • 2,931
  • 1
  • 9
  • 26