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
11
votes
2 answers

Headless browser that supports HTML 5 video?

I need to automate screenshots of HTML 5 video player pages and their thumbnails, but after looking at some of the more popular headless browsers like PhantomJS they don't support HTML 5 video. >phantomjs examples\features.js Detected features…
user3813948
  • 363
  • 3
  • 13
11
votes
1 answer

x-ray-phantom authentication, unable to effectively login

I'm really can't find any example of using x-ray and .driver(phantom()) for authentication.. I've trawled through the documentation for x-ray and x-ray-phantom yet can't find any help.
Babra Cunningham
  • 2,949
  • 1
  • 23
  • 50
11
votes
1 answer

Google ChromeDriver can't run in xvfb in EC2 server, errors out as soon as sendkeys() is called

I am getting following error when I try to run my selenium code to launch chrome driver and test signin functionality in EC2 Box. I run Xvfb server like this, in another terminal Xvfb :1 -screen 0 1366x768x24 -ac. I have also added export DISPLAY=:1…
10
votes
1 answer

How can I pause and wait for user input with Puppeteer?

I need to make Puppeteer pause and wait for user input of username and password before continuing. It is a nodejs 8.12.0 app. (async () => { const browser = await puppeteer.launch({headless: false}); const page = await browser.newPage(); …
user938363
  • 9,990
  • 38
  • 137
  • 303
10
votes
1 answer

page does not wait for another page to finish their tasks before continuing

So here's the code snippet: for (let item of items) { await page.waitFor(10000) await page.click("#item_"+item) await page.click("#i"+item) let pages = await browser.pages() let tempPage =…
A. L
  • 11,695
  • 23
  • 85
  • 163
10
votes
3 answers

How do I use Selenium Webdriver on headless Chrome?

I'm learning to use Selenium for basic things like taking a screenshot, scraping, and testing and would like to use it with headless Chrome, which is now stable as of Chrome 59. I have been able to take a screenshot using the 'selenium-webdriver'…
10
votes
1 answer

ChromeHeadless failed to start stdout / Cannot start ChromeHeadless with PhantomJS / Karma

I'm currently running tests using PhantomJS and Karma to test a Angular.js application. With the recent release of ChromeHeadless, we have started using ChromeHeadless test browser instead of the default PhantomJS browser. I currently have…
Adam McKenna
  • 2,295
  • 6
  • 30
  • 41
10
votes
1 answer

Simplest way authenticate with Python Google APIs to access own accounts

The main use case is using IPython as CLI to my own Google accounts. What I am really after is minmizing the fussing around between starting the IPython shell and actually issuing usefull calls against the API. The docs for authenticating with…
10
votes
2 answers

Using CefSharp.Offscreen to retrieve a web page that requires Javascript to render

I have what is hopefully a simple task, but it's going to take someone that's versed in CefSharp to solve it. I have an url that I want to retrieve the HTML from. The problem is this particular url doesn't actually distribute the page on a GET. …
Robert Harvey
  • 178,213
  • 47
  • 333
  • 501
10
votes
5 answers

How do I make Python, QT, and Webkit work on a headless server?

I have Debian Linux server that I use for a variety of things. I want it to be able to do some web-scraping jobs I need done regularly. This code can be found here. import sys from PyQt4.QtGui import * from PyQt4.QtCore import * from…
Brigand
  • 84,529
  • 20
  • 165
  • 173
10
votes
1 answer

How to properly configure the Selenium Maven Plugin to work with Xvfb to run headless

Background: I'm using selenium-server-2.25.0 in conjunction with J-Unit 4 to run through a handful of UI testing scenarios for my GWT app. In my IDE (Netbeans 7.2), I can right-click on my project, choose "Test", and see Firefox windows pop up all…
jcovert
  • 550
  • 1
  • 7
  • 21
9
votes
1 answer

Selenium java + PhantomJS - phantomjs://platform/console++.js:263 in error

I was trying to run selenium with phantomjs headless browser and getting "phantomjs://platform/console++.js:263 in error" error message. Searched over internet but did not get any solution, so asking here. Same code and solution not working for me…
9
votes
4 answers

WebDriverError: unknown error: Chrome failed to start: exited abnormally

What I'm trying to achieve Successfully run my protractor tests on headless chrome on Ubuntu 14 non gui. Set up Using multiple reference pages I have managed to successfully install: Xvfb Chrome latest browser Protractor 3.3.0 Java 7 (also tried…
9
votes
2 answers

Using QWebEngine to render an image

I'm looking to replace QWebKit with QWebEngine in my headless renderer. I initialise the page with load() and connect a slot to loadFinished() to generate the final .PNG image. This used to work fine with WebKit but fails with QWebEngine. Code is…
Richard Adams
  • 591
  • 1
  • 9
  • 23
9
votes
4 answers

PhantomJS, but not headless?

Is there a way to get a realtime view of what PhantomJS (or similar) is rendering? I would like to develop my automation script while interacting with (or at least seeing a screencap of) the page it's targeted to.
themirror
  • 9,963
  • 7
  • 46
  • 79