Live data from Hacker News

Headless mode in Firefox

developer.mozilla.org

121–130 of 191 posts

Re: Headless mode in Firefox

#123
post #119

Earlier quoted context omitted.

Well why do you want to do that, if you are finding the tests are too slow it maybe worth writing some tests with jasmine that can be run in node without a browser. That's what we currently do, karma and browser testing are useful but sometimes you can get away with not using them. One thing we are trying is using JSDom to run browser based tests in node

We ported all our karma/Jasmine tests to (ts-)jest. Works great. Comes with JsDOM out of the box.

Do you have any advice / links on how to do that? May be you should write a blog post about it. :)

Re: Headless mode in Firefox

#124
post #3

As a UI designer, I dream of strike headless strike chromeless browsers, where the UI appears when you need it, intuitively, even when NOT in full screen. The top bar simply takes too much unnecessary space. If there's any dev that wants to collaborate on this, let me know :)

F11?

F11 is full screen, not headless. Headless means you can't see the browser or the website content, it's built for scripting purposes (automated web testing and web scraping). The only time you can see the content is if your script requests a screen capture.

Re: Headless mode in Firefox

#126
post #98

It would be cool if mozilla and google would standatalize the headless API and command line flags as llvm and gcc has done, so you would perform headless cross browser testing.

So something like Webdriver.io ?

Like that, but with documentation.

Re: Headless mode in Firefox

#127
post #42
post #29

Earlier quoted context omitted.

I'm currently evaluating testcafe which is pretty nice, and headless chrome was easy to setup. I'm interested to see what people recommend for browser testing, I'm also using preact.

I switched from selenium to testcafe a few weeks ago. It's such a great tool. I would never go back.

What do you like better with testcafe?

Re: Headless mode in Firefox

#128
post #94

Earlier quoted context omitted.

Or you could look at as really bad news if it takes a decade to implement this.

I mean, Selenium has worked for Firefox for years so it's not like this was a priority. It's a decade to decide this is worth doing, which is reasonable given that there's also a "good enough" solution out there; Selenium.

Good enough to be the W3C standard. https://www.w3.org/TR/webdriver/

Re: Headless mode in Firefox

#129
post #6

Can you tell Firefox to print in headless mode? I want to write reports using HTML and JS, but printing is always an issue.

It just hit me why people continue to ask for headless browsers to be able to print to PDF -- for reports!

To get better control of the print job, do you ever use Adobe InDesign?

Re: Headless mode in Firefox

#130
post #95

Has anyone built a WaaS yet ? (Web-browser as a service.)

Sauce Labs and BrowserStack have been in that space for quite a while now.

2008 for Sauce Labs, to be precise. Before that, BrowserCam (founded in 2002, acquired by Gomez in 2007) was part of my inspiration for Sauce Labs. BrowserCam was one of the first screenshots-as-a-service sites. The only thing it was missing was Selenium support for end-to-end test automation. :-)
Post reply on HN