question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support for headless chrome

See original GitHub issue

Hi!

Since version 58, Chrome can run in headless mode. I wanted to try it out with the following code:

Selenium::WebDriver.for :chrome, switches: %w[--disable-gpu --headless]

This resulted with Selenium::WebDriver::Error::UnknownError: unknown error: unrecognized Chrome version: HeadlessChrome/58.0.3029.96 so I tried:

Selenium::WebDriver.for :chrome, switches: %w[--disable-gpu --headless --remote-debugging-port=9222], port: 9222

But the result was Net::ReadTimeout: Net::ReadTimeout.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:3
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

4reactions
KristianWindsorcommented, Oct 13, 2017

@lmtierney My bad. I was looking at this list of chromedrivers and was under the impression that 2.9 was newer than 2.33.

1reaction
lmtierneycommented, Oct 12, 2017

@Windso 2.9 is extremely old. 2.33 is the latest

Read more comments on GitHub >

github_iconTop Results From Across the Web

Getting Started with Headless Chrome - Chrome Developers
A headless browser is a great tool for automated testing and server environments where you don't need a visible UI shell. For example,...
Read more >
Headless Chromium
Headless Chromium allows running Chromium in a headless/server environment. Expected use cases include loading web pages, extracting metadata (e.g., ...
Read more >
The Beginner's Guide to Chrome Headless
What is Headless Chrome? Why use it and what can you do with it? This post has all the answers you need to...
Read more >
What is Google Chrome Headless Mode - DebugBar
The headless mode of the Google Chrome browser provides the ability to implement and run massive-scale web app tests, navigate from one page...
Read more >
706008 - Extensions support in headless Chrome - Monorail
Headless mode doesn't currently support extensions, and it's not clear whether we can support them easily -- although we are doing some ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found