Is there a linux headless mode already? Selenium chrome driver headless is pretty much useless in linux because important methods like `send_keys` need X anyway for keyboard mappings or something like that.
Firefox 56 supports headless mode on Windows
21–30 of 88 posts
Re: Firefox 56 supports headless mode on Windows
#22Poke me when there are no X11/Qt/GTK/whatever dependencies at all - that is headless.
Re: Firefox 56 supports headless mode on Windows
#23Re: Firefox 56 supports headless mode on Windows
#24I was wondering if I could use this (using a plugin) or Chrome to generate PDF files on the web server. Most of the PDF generation software out there are quite expensive.
PhantomJS made the process pretty easy, but that's probably not a good option these days as it's on the way out.
NightmareJS is pretty much the same and can do it (though I haven't tested myself) [0]
If you want to get a little deeper you can use CEF (Chromium Embedded Framework [1 ]. It basically turns Chrome into a library and there are a bunch of projects that build on top of it (eg Electron, which is what NightmareJS uses underneath).
Here's a project that just uses CEF for converting to PDF [2].
[0] https://github.com/segmentio/nightmare#pdfpath-options [1] https://bitbucket.org/chromiumembedded/cef/overview [2] https://github.com/spajak/cef-pdf
Re: Firefox 56 supports headless mode on Windows
#25"headless" Poke me when there are no X11/Qt/GTK/whatever dependencies at all - that is headless. https://packages.debian.org/stretch/firefox-esr
Not that Firefox itself is particularly lightweight.
Re: Firefox 56 supports headless mode on Windows
#26"headless" Poke me when there are no X11/Qt/GTK/whatever dependencies at all - that is headless. https://packages.debian.org/stretch/firefox-esr
This got down voted a lot but GTK is really a pretty painful dependency in many situations (especially gtk3) Not that Firefox itself is particularly lightweight.
Re: Firefox 56 supports headless mode on Windows
#27Is there a linux headless mode already? Selenium chrome driver headless is pretty much useless in linux because important methods like `send_keys` need X anyway for keyboard mappings or something like that.
Genuine noob question: could you not use Xvfb?
Re: Firefox 56 supports headless mode on Windows
#28"headless" Poke me when there are no X11/Qt/GTK/whatever dependencies at all - that is headless. https://packages.debian.org/stretch/firefox-esr
Re: Firefox 56 supports headless mode on Windows
#29Is there a linux headless mode already? Selenium chrome driver headless is pretty much useless in linux because important methods like `send_keys` need X anyway for keyboard mappings or something like that.
There is a bug filed against the chrome driver send_keys issue, and a workaround...one that requires recompiling though. https://bugs.chromium.org/p/chromedriver/issues/detail?id=17...
If you are blocked it may be worth a look
Re: Firefox 56 supports headless mode on Windows
#30"headless" Poke me when there are no X11/Qt/GTK/whatever dependencies at all - that is headless. https://packages.debian.org/stretch/firefox-esr
So it's going to need a UI rendering and interaction library.