Latest headless-chromium

977 views
Skip to first unread message

Ananya []

unread,
Jun 22, 2021, 11:37:56 PM6/22/21
to headless-dev
Hi Team,

Getting this error message for my selenium script-

Message: session not created: This version of ChromeDriver only supports Chrome version 90
Current browser version is 65.0.3325.181 with binary path /tmp/headless-chromium


How can I get the latest headless-chromium version that will be compatible.

Thanks & Regards,
Ananya

Andrey Kosyakov

unread,
Jun 23, 2021, 9:18:58 PM6/23/21
to Ananya [], headless-dev
Hi Ananya,

Headless is shipped as part of chrome's regular binary and is available if you run chrome with --headless. We don't ship a separate binary, but you can build your own using the headless_shell target.

Best regards,
Andrey.


--
You received this message because you are subscribed to the Google Groups "headless-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to headless-dev...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/headless-dev/48cb9845-a394-4b83-9bfb-0b6a33e9ff7bn%40chromium.org.

Jack Hall

unread,
Jul 19, 2021, 12:50:45 PM7/19/21
to headless-dev, ca...@chromium.org, headless-dev, Ananya []
Hi Team,

Getting the same issue, please could you expand on the steps that need taking to build own binary using the headless_shell target?

Any help is much appreciated.

Thanks
Jack

Kenneth Shaw

unread,
Jul 19, 2021, 3:31:03 PM7/19/21
to Jack Hall, headless-dev, ca...@chromium.org, Ananya []
Hi Jack,

It's straightforward, but can be a bit cumbersome if you've not built Chromium before. I'd suggest reading the headless_shell markdown notes, and to take a look at the build script used by the chromedo docker repo here: https://github.com/chromedp/docker-headless-shell/blob/master/build-headless-shell.sh

The script might not be usable for you out of the box, but should give a clear, 10,000 meter view on the steps needed to build (and customize) headless_shell.

(Note: ignore the instructions/comments in the script about icecc, as the icecc-chromium scripts recently broke, and as far as I am aware, still do not work with latest chromium tagged versions) 

Long/short of it is that one should follow the general steps to checkout/update Chromium, and then setup a project file (args.gn) that includes the headless.gn config/args. Then, after running gn gen, use ninja to build the headless_shell and chrome_sandbox targets.

Message has been deleted

Andrey Kosyakov

unread,
Jul 20, 2021, 2:27:54 PM7/20/21
to Jack, headless-dev, Ananya []
Hi,

Kenneth has already given some pointers to the documents along with a comprehensive description above (thanks, Kenneth!), but I'll try to summarize:

- the process is generally similar to building chrome on linux, so start with these instructions.
- the exact build configuration is subject to environment you will be running this in, but we have a recommended configuration for an average headless environment in build/args/headless.gn
- to use the above, run gn args your-build-directory and add import("//build/args/headless.gn") there.
- build headless_shell target.

Here's an example:

~/cr/src$ mkdir out/headless
~/cr/src$ cat >out/headless/args.gn
import("//build/args/headless.gn")
is_debug = false
is_component_build = false
enable_ffmpeg_video_decoders = false
media_use_ffmpeg = false
media_use_libvpx = false
proprietary_codecs = false
~/cr/src$ gn gen ./out/headless/
Done. Made 16148 targets from 2790 files in 5559ms
~/cr/src$ autoninja -C ./out/headless headless_shell

Best regards,
Andrey.

On Tue, Jul 20, 2021 at 9:08 AM Jack <pham...@gmail.com> wrote:
Hi Ananya,

Hope you're well.

I came across your post online about an issue you were experiencing with an out-of-date version of headless-chromium.

I've been having the same problem recently with a headless-chromium binary version 62.x..., which is used in a Lambda service on AWS to run a selenium script written in Python which has worked for a couple years or so now.

I was curious as to how I could rebuild this with the latest version. I've tried the headless-shell mentioned from the forum but to no avail.

Did you manage to find a solution to your error in the end?

Any help is much appreciated.

Thanks
Jack

--
You received this message because you are subscribed to the Google Groups "headless-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to headless-dev...@chromium.org.
Reply all
Reply to author
Forward
0 new messages