Questions tagged [headless-browser]

A headless browser is a web browser without a graphical user interface. They are used to provide content of web pages to other programs.

A headless browser is a browser without a GUI. In most cases, it can be accessed from a command line.

They are typically used for automated testing of websites.

Examples include:

748 questions
5
votes
2 answers

Headless webkit for .NET

Do any of you know of a headless webkit wrapper for .NET? I've looked at WebKitDotNet but it does not seem to work in headless mode.
mgamer
  • 13,580
  • 25
  • 87
  • 145
5
votes
2 answers

Watir-Webdriver: How to run headless, and in grid

I'm upgrading my script from Watir to Watir-Webdriver and I'm wondering how to take advantage of headless-browser testing and grid testing. I've done some research into it but my sources don't seem substantiated, and tutorials are very thin on the…
5
votes
1 answer

Selenium Firefox headless returns different results

When i scrape page that contains products with usage of headless option i get different results. For the same question one time i get results that are not sorted, and another time with proper sorted order. Selenium firefox browser: firefox_options =…
5
votes
1 answer

Difference of Headless browsers for automation

The main difference is, execution on GUI bases and non GUI bases(Headless). I am looking for difference between all Headless browsers with each other, But unfortunately I didn't find any. I go through one by one, Which makes more confusion. It…
5
votes
1 answer

Emulate devices with headless_chrome

I'm trying to emulate different devices when running my specs, with no results for now. #spec_helper require 'rspec' require 'capybara' require 'capybara/rspec' require 'selenium/webdriver' Capybara.register_driver :headless_chrome do |app| …
fabdurso
  • 2,366
  • 5
  • 29
  • 55
5
votes
1 answer

Angular-Protractor-Headless Chromium: When using APP_INITIALIZE, Angular could not be found on the page

We are building an Ionic hybrid app, and we implemented automated E2E tests that run by the CI system. All these test have been working properly until we implemented APP_INITIALIZE in our "app.module" to obtain the browser language before…
5
votes
1 answer

how to launch headless chrome with "do not track" setting with puppeteer?

How can I set "do not track" when lunching chromium in puppeteer? Is it possible? Is there any option in args to set as follows. puppeteer.launch({ args=['DO_NOT_TRACK']}) Tried many options listed in chromium switches, but could not find the one…
arslan
  • 2,034
  • 7
  • 34
  • 61
5
votes
1 answer

chrome headless bypass certification on terminal

I want to run chrome with --headless option on my Ubuntu 16.04.1 LTS pc, I use https protocol. This is the command: $ /usr/bin/google-chrome-stable --allow-running-insecure-content --ignore-certificate-errors --disable-gpu --headless…
Aron
  • 1,142
  • 1
  • 14
  • 26
5
votes
2 answers

Trying to configure Xvfb to run Firefox headlessly

I was following along this tutorial to configure Xvfb to run firefox headlessly. http://www.alittlemadness.com/2008/03/05/running-selenium-headless/ I'm running these commands in a docker image (ubuntu:latest) currently to see if I can set up my…
azemPC
  • 264
  • 3
  • 15
5
votes
0 answers

Useful headless browser for Android

Is there any known headless browser that works on Android and supports JS? I tried HTMLUnit, but it doesn't work on Android. I tried using JSoup, wich works great but doesn't support JS. Any other suggestions?
Black Magic
  • 2,706
  • 5
  • 35
  • 58
5
votes
1 answer

Various Urllib2 errors when running Selenium webdriver on a VPS

I'm using Selenium with Python bindings to scrape AJAX content from a web page with headless Firefox. It works perfectly when run on my local machine. When I run the exact same script on my VPS, errors get thrown on seemingly random (yet consistent)…
Ryne Everett
  • 6,427
  • 3
  • 37
  • 49
5
votes
3 answers

Repeating "Asynchronous Sessions cleanup phase starting NOW"

When I run my test suit, I find that intermittently some of the texts will hang for a very long time (15 mins to half an hour) with PhantomJS constantly reporting: Asynchronous Sessions cleanup phase starting NOW Asynchronous Sessions cleanup phase…
BanksySan
  • 27,362
  • 33
  • 117
  • 216
5
votes
1 answer

Heisenbug with own headless browser

I'm working on a headless browser based on WebKit (using C++/Qt4) with JavaScript support. The main purpose for this is being able to generate a HTML spanshot of websites heavily based on JavaScript (see Backbone.js or any other JavaScript MVC). I'm…
alexandernst
  • 14,352
  • 22
  • 97
  • 197
5
votes
0 answers

unable to connect to chromedriver http://127.0.0.1:50299 (Selenium::WebDriver::Error::WebDriverError)

Possible Duplicate: unable to connect to chromedriver 127.0.0.1:46050 (Selenium::WebDriver::Error::WebDriverError) I installed jenkins on the amazon ec2 api and I am using jenkins to run my headless cucumber tests. I downloaded the chromedriver,…
4
votes
9 answers

Best way to package a headless browser?

I am working on a desktop software for a client and I was thinking for the UI, I would use standard web technologies like HTML5+JS and was planning to simply package in a headless version of a modern browser like Chrome/Firefox with my software. For…
pathikrit
  • 32,469
  • 37
  • 142
  • 221