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
9
votes
1 answer

Gradle build fails with NoClassDefFoundError for sun.awt.X11GraphicsEnvironment in :mergeDebugResources

I always get this error when I try to build microG: $ ./gradlew build Skipping debug jar:microg-ui-tools:preBuild UP-TO-DATE :microg-ui-tools:preDebugBuild UP-TO-DATE :microg-ui-tools:checkDebugManifest :microg-ui-tools:preDebugAndroidTestBuild…
MilkeyMouse
  • 581
  • 4
  • 11
9
votes
1 answer

Creating Texture in headless LibGDX unit tests

I am using the LibGDX headless backend to run jUnit tests. This works well for certain tests, but if I try to create a new Texture('myTexture.png');, I get a NullPointerException. The exact error is: java.lang.NullPointerException at…
twiz
  • 9,041
  • 8
  • 52
  • 84
9
votes
3 answers

Running Selenium headless without using xvfb

I'm trying to run Selenium headless (without the browser appearing). Other questions have pointed to xvfb as the tool to do this. However, it appears highly unstable, crashing all the time, so I'm looking for another alternative. Is there a non-xvfb…
Paul Biggar
  • 27,579
  • 21
  • 99
  • 152
9
votes
0 answers

Headless browser for multithreads application

I'm looking for a headless browser for .NET multithread application. It must has next features: Working without any server installation. I need just simple library to distribute with my application. Ajax/HTML 5 support. Ability to work with pages…
user809808
  • 779
  • 1
  • 10
  • 23
9
votes
2 answers

How to make PhantomJS include background images when rendering screenshot?

I'm using PhantomJS to take screenshots of a webpage, with the page.render() method as detailed in https://github.com/ariya/phantomjs/wiki/Screen-Capture . It works fine except for background images, which all somtimes appear blank. You can see an…
Michael Low
  • 24,276
  • 16
  • 82
  • 119
9
votes
2 answers

Better failure report in Jasmine headless webkit

I've got a simple TypeError: 'undefined' is not an object failure when running a test in Jasmine headless webkit. But there is no hint in which file or line the error occurs. Is there a way to get a clearer failure message?
Andreas Köberle
  • 106,652
  • 57
  • 273
  • 297
8
votes
3 answers

Running a GUI application on a CI service without X11

I have a GUI application that I would like to set up testing for via GitHub Actions. I already have it set up so that GitHub Actions compiles the application on Ubuntu, but now what I would like to do is run the application for a few seconds and…
8
votes
2 answers

ignore-certificate-errors + headless puppeteer+google cloud

The website I am trying to access has ssl certificate-errors I am using this version of puppeteer "puppeteer": "1.13.0". When I try to await page.goto('http://bad_ssl_certificate_website') I have timeout error on google cloud only. TimeoutError:…
8
votes
3 answers

Docx to pdf using openoffice headless way too slow

I've been using PHPWord for docx files generation. And it's been working great. But now I have the need to also make available some of those files on a pdf version. After a few research I found PyODConverter which use OOo. Seemed quite a good option…
Restless
  • 538
  • 1
  • 15
  • 29
8
votes
3 answers

Upload files to site automatically without browser focus

I work on test script to automate file uploading to a site and execute script in headless mode. It needs to upload list of files one by one, I develop it based on Selenium WebDriver. I use AutoIT script to handle dialog window, file chooser window.…
plaidshirt
  • 5,189
  • 19
  • 91
  • 181
8
votes
2 answers

puppeteer doesn't open a url without protocol

const puppeteer = require('puppeteer'); const browser = await puppeteer.launch(); const page = await browser.newPage(); This one works await page.goto('https://example.com'); This doesn't work (without the protocol i.e http/https) await…
Abdullah
  • 2,015
  • 2
  • 20
  • 29
8
votes
3 answers

Possible to open/display/render a headless Selenium session?

I know this is sort of counter to the purpose of headless automation, but... I've got an automation test running using Selenium and Chromedriver in headless mode. I'd prefer to keep it running headless, but occasionally, it runs into an error that…
user7729352
8
votes
0 answers

headless Chrome - why doesn't it create screenshots?

I am following this manual But for whatever reason my command in CLI does not produce any image: C:\temp2>"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --headless --disable-gpu --screenshot http://www.google.com I have Chrome 62…
Pontiac_CZ
  • 619
  • 1
  • 6
  • 13
8
votes
1 answer

Java headless bicubic image resize

I need to perform java image crop and resize without an X server. I tried several methods. the first method below works, but outputs a fairly ugly resized image (probably using nearest neighbor algorithm for the resize: static BufferedImage…
Omry Yadan
  • 31,280
  • 18
  • 64
  • 87
8
votes
1 answer

Headless Chrome in Docker using Xvfb

I am trying to run Chrome headless inside a Docker container using Xvfb. However, while ps shows Chrome processes exist, it is not reaching my test website. Running the same commands outside Docker is successful. Xvfb :0 -screen 0 1024x768x24…
phranax
  • 221
  • 1
  • 2
  • 5