Chrome Headless is the headless mode of Chrome and Chromium used for automation, testing, and CI scenarios. Use this tag for questions related to the usage of Chrome Headless and the DevTools protocol.
Questions tagged [google-chrome-headless]
1156 questions
-1
votes
1 answer
Headless Chrome opening as normal with GUI (MacOS)
I am attempting to run headless Chrome on my MacBook, but when I run it according to the instructions here the Chrome app just opens normally, with its GUI. I am running:
"/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" \
-–headless…

ChrisM
- 2,128
- 1
- 23
- 41
-1
votes
1 answer
How to run a script in a headless mode
There is a script-parser site written in Python with Selenium, if I run it in headless mode, so as not to open the browser window, it can not find the desired item and spar the information from it. If I run it without headless mode, it works…

auem
- 45
- 7
-1
votes
1 answer
How to get dom with headless-chromium-php
I'm using headless-chromium-php, but getHtml function seems to get the html source code.
https://github.com/chrome-php/chrome#get-the-page-html
Instead, I want to get the DOM displayed in the chrome browser.
so, How can i do it
I want to get the…

nori
- 45
- 5
-1
votes
1 answer
Chrome Browser Headless problem : no such element: Unable to locate element at chrome://downloads/
due to some scenarios, I need to access chrome://downloads/
by headless mode but I got the error that looks like this:
org.openqa.selenium.NoSuchElementException: no such element: Unable to locate element: {"method":"css…

Chuoi
- 5
- 5
-1
votes
2 answers
How to check if Python Selenium Chrome headless is working?
I'm trying to implement Python Selenium Chrome headless, I have the code snippet below. When i try the same code without headless option, i can see the browser launch as well as the current url on the console. But when i use headless option, this…

Rahul S L
- 1
- 3
-1
votes
1 answer
Selenium returning error only in headless mode C#
So far all my tests are running ok, to improve speed I was trying to run all in headless mode, but a bunch of those tests are failing, one of those had the following error:
OpenQA.Selenium.ElementNotInteractableException: element not interactable
…

jaime junior
- 49
- 6
-1
votes
1 answer
How to load local html to headless chrome
I have local html files which I need to render them and get their screenshot.
I could not find any solution to load html codes in chromedp
Is that possible?

user3067113
- 11
- 3
- 9
-1
votes
1 answer
Selenium ChromeDriver on Jenkins throwing Chrome Version error when executing tests
I am attempting to run my Selenium automated tests on Jenkins so tests will run when I build to Dev. I am executing the tests using Nunit3 Console, so I added a Windows batch command in Jenkins to run the nunit3-console.exe then call my Selenium…

Gary R
- 1
- 1
-1
votes
1 answer
External Stylessheets with puppeteer
I am trying to get all the external stylesheets in puppeteer Js and i am not getting only one.
here is my code:
try {
const browser = await puppeteer.launch();
const page = await browser.newPage();
page.on('response', async response =>…

Waqar Haider
- 929
- 10
- 33
-1
votes
1 answer
How to use selenium with autoit for file upload in a Headless chrome browser?
I'm trying to automate a webpage in selenium on a chrome browser which is integrated into a TeamCity server.
The code is working perfectly in my local machine.
File upload is done with Autoit scripts but when running through TeamCity on chrome…

Appu Rajendran
- 192
- 1
- 2
- 10
-1
votes
1 answer
CI won't execute properly for Rails project after switching to selenium
I'm switching from capybara-webkit to the webdrivers gem and it's all running fine locally for me, get on my CI on Gitlab I'm getting this error bin/rails: No such file or directory - --product-version I've updated my gitlab-ci.yml to include the…

8vius
- 5,786
- 14
- 74
- 136
-1
votes
2 answers
How to know the version of headless chrome browser in protractor?
I am using chrome headless browser with protractor to test the application following this link I had turned out my chrome to be headless.
It states that :
As of Chrome 58 you also need to set --disable-gpu, though this may
change in future…

Aditya
- 2,358
- 6
- 35
- 61
-1
votes
1 answer
Unable to capture screenshot in Chrome Headless mode while switched in new tab
I have below Configuration :
Selenium 3.8.0
Java 8
Chrome Browser 60
Chromedriver v 2.31 64bit
I'm running my test in chrome headless mode. The issues is, the browser get unresponsive while it switch to new tab and try to capture the…

NarendraR
- 7,577
- 10
- 44
- 82
-1
votes
1 answer
Closing the first tap when launching chrome which is a local path
I wanna close the first tap and leave only the blank tap
Here's a pic showing what i mean .
Here's my code
const fsExtra = require('fs-extra')
const chromeLauncher = require('lighthouse/chrome-launcher/chrome-launcher');
const CDP =…

Omar Abd El-Naser
- 684
- 7
- 20
-2
votes
1 answer
What's the best way to get just the user readble word content of a page?
Take your average mainstream url like:
https://people.com/books/jay-shetty-announces-new-book-8-rules-of-love/
And it's pretty easy to just copy and paste the text of the article as a human. But is there any standard way in 2023 to get just the…

Andrew Arrow
- 4,248
- 9
- 53
- 80