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
28
votes
9 answers

Components not included in Strapi api response

I decided today that I'm going to use Strapi as my headless CMS for my portfolio, I've bumped into some issues though, which I just seem to not be able to find a solution to online. Maybe I'm just too clueless to actually find the real issue. I have…
Sandmountain
  • 447
  • 1
  • 5
  • 13
27
votes
2 answers

What is the meaning of the term 'headless' in the context of Java development in Eclipse?

What is the meaning of the term 'headless' in the context of Java development in Eclipse?
Shailesh Tainwala
  • 6,299
  • 12
  • 58
  • 69
26
votes
3 answers

Chrome Headless puppeteer too much CPU

I have a scraping algorithm in nodejs with puppeteer which scrapes 5 pages concurrently and when it finishes with one page it pulls the next url from a queue and open it in the same page. The CPU is always at 100%. How to make puppeteer use less…
Pjotr Raskolnikov
  • 1,558
  • 2
  • 15
  • 27
25
votes
2 answers

Limit chrome headless CPU and memory usage

I am using selenium to run chrome headless with the following command: system "LC_ALL=C google-chrome --headless --enable-logging --hide-scrollbars --remote-debugging-port=#{debug_port} --remote-debugging-address=0.0.0.0 --disable-gpu --no-sandbox…
22
votes
4 answers

Spring Boot : java.awt.HeadlessException

When we are trying to get the Clipboard instance. Clipboard cb = Toolkit.getDefaultToolkit().getSystemClipboard(); Also i have tried to run the Spring boot application by setting the head. SpringApplicationBuilder builder = new…
mahesh
  • 909
  • 2
  • 18
  • 37
21
votes
3 answers

Puppeteer: How to listen to object events

Is it possible to listen to events dispatched by in-page objects? Let's say I have this code in the page I go to: var event = new CustomEvent('status', { detail: 'ok' }); window.addEventListener('status', function(e) { console.log('status: ',…
Vic
  • 211
  • 1
  • 2
  • 5
21
votes
0 answers

Is it possible to install Headless Chrome without X11 dependencies?

I wonder if is it possible to somehow install Headless Chrome without X11 dependencies, e.g. on a VM or in a Docker container? Currently when I install it from the Chrome repo it downloads lots of useless stuff as dependencies. It takes a long time…
20
votes
5 answers

How do I correct this Selenium initialisation command deprecation warning?

Using Rails 6 I'm trying to set up selenium in headless mode for system tests, I'm using this statement in application_system_test_case.db: driven_by :selenium, using: :headless_chrome, screen_size: [1400, 1400] (according to Agile Web Dev Rails 6…
jbk
  • 1,911
  • 19
  • 36
20
votes
5 answers

Puppeteer not running in headless:false mode

Im trying to start puppeteer in headless:false mode. It's working on my local machine but when i push it to my server and try to start it i get this error: 4|scraperP | You have triggered an unhandledRejection, you may have forgotten to catch a…
Pjotr Raskolnikov
  • 1,558
  • 2
  • 15
  • 27
20
votes
6 answers

Easiest way to unit test SWT and Swing apps in a headless environment?

I'm looking to unit test some SWT and Swing code for a project I'm working on and the tests run fine as long as I'm running them from eclipse. As soon as I run them in my hudson environment it fails since hudson runs the tests in headless…
Allain Lalonde
  • 91,574
  • 70
  • 187
  • 238
19
votes
7 answers

Chromium/Chrome headless - file download not working?

I downloaded the latest version of chromium, to test out the headless feature. When I run (as root, because I'm still testing things): ./chrome --no-sandbox http://cp7.awardspace.com/speed-test/awardspace-data1mb.zip In the GUI terminal, it opens…
Taapo
  • 1,785
  • 4
  • 18
  • 35
19
votes
4 answers

How to get Sikuli working in headless mode

If we have a headless test server running sikuli (both ubuntu and windows configurations needed), how to get it work without a physical monitor and preferably for as many screen resolutions as possible.
Amr Lotfy
  • 2,937
  • 5
  • 36
  • 56
18
votes
3 answers

Using a http proxy with headless firefox in Selenium webdriver in Python

I'm using Firefox headless like this: from selenium.webdriver.firefox.firefox_binary import FirefoxBinary from selenium import webdriver import os import sys # Set the MOZ_HEADLESS environment variable which casues Firefox to # start in headless…
fpghost
  • 2,834
  • 4
  • 32
  • 61
18
votes
7 answers

Selenium working with Chrome, but not headless Chrome

I've developed a couple of Python scripts using Selenium and, at first, PhantomJS. While heading toward automated downloads, I switched for (headed) Firefox (which worked) and then Chrome with the headless option so I won't have the browser opening…
Gnougnou
  • 183
  • 1
  • 1
  • 7
17
votes
7 answers

How to connect to Chromium Headless using Selenium

I would like to use chromium headless for automated testing using selenium. (https://chromium.googlesource.com/chromium/src/+/lkgr/headless/README.md) I do have the headless version already running on 9222. So if i open…
geri-m
  • 665
  • 2
  • 11
  • 23
1
2
3
79 80