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
0
votes
1 answer

Using headless chrome number format is messed up

I am using headless chrome. Most of the test cases do pass with this change. But wherever any number assertions are there, they are failing, which is nearly 100 tests out of 800 tests. Ex: The following asserts failed: Incorrect promotion…
0
votes
1 answer

Selenium WebDriver: Firefox not getting element by tag name

I want to run Firefox headless using Selenium WebDriver in Python. The point is to go to a page, wait till JavaScript is loaded, and collect all the links on this page. To start testing, I did this code: import time from selenium import…
0
votes
1 answer

Casperjs keep alive a login session

I'm trying to keep alive a login session, after 3 min of inactivity the user get disconnected. The problem here is that most of cases the page is giving errors 502/504, so I want to send http get request every 20/30 secs without receive a response,…
lpluispacheco
  • 103
  • 1
  • 7
0
votes
0 answers

How to get redirected urls on a headless server

Please suggest a method of getting final urls after redirection in an automated way. It has to run on my headless Ubuntu server. Selenium will only start a browser in headless mode on this server, else error: opts =…
0
votes
1 answer

Rebol / Red calling Headless Chrome on Windows

In Dos command to take screenshot, you can use (see https://developers.google.com/web/updates/2017/04/headless-chrome): chrome --screenshot="C:\test\test.png" "http://google.com" --headless --disable-gpu In Rebol, I can make it work only using…
user310291
  • 36,946
  • 82
  • 271
  • 487
0
votes
2 answers

php solution for parsing resulting html after ajax clicks

I'm currently using curl to login to a site and grab the html for one of the pages. My problem is that the page has some ajax links on it (click on the link results to html changes). How would I be able to make the clicks of the link and get the…
kharles
  • 326
  • 5
  • 14
0
votes
1 answer

Unable to locate element error throws when I tried to login to gmail using headless browser in selenium

I tried to login to gmail using headless browser with Selenium but it throws : 'Unable to locate element: {"method":"xpath","selector":"//input[@id='identifierId']"} But the same is working perfect with normal browser run using selenium. My code…
sebin john
  • 23
  • 1
  • 2
  • 11
0
votes
0 answers

Embeddable headless browser for Java?

I'm developing a JavaFX desktop application which, as a part of its functionality, needs to headless render websites and be able to execute JavaScript against them. Right now for this purpose I'm using JBrowserDriver, and while it works well, I…
fergaral
  • 2,077
  • 6
  • 17
  • 34
0
votes
0 answers

how do I know if the headless chrome(puppeteer) browser page is not opened properly?

I've been doing web scraping/crawling using headless-chrome(puppeteer.js). The target data is massive(approx. 3,000 ~ 20,000 pages) so I've created node.js crawling app that does multiple asynchronous scraping at the same time with multiple chrome…
0
votes
0 answers

PhantomJS don't find elements hidden by 'display:none'

I'm having trouble to automate some functional tests using phantomJS and Selenium Web-Driver on Eclipse, perhaps you guys can help me. I have a product card that shows three elements that are hidden by JavaScript when you perform a hover on it,…
0
votes
1 answer

Is there a way to intercept Network calls from in HeadlessChrome

I am running headless chrome in a docker container. I am making some http requests with payload. Is there a way to read the payload??
Vinny
  • 865
  • 1
  • 11
  • 25
0
votes
1 answer

Open GWT-Application in Headless Chrome doesn't work

I'm currently working on an utility tool which is supposed to test a GWT-Application. I want to use headless Chrome but it doesn't work I do the following: DesiredCapabilities cap = DesiredCapabilities.chrome(); ChromeOptions options = new…
0
votes
2 answers

Need headless browser for Armv7 linux processor

I need a headless browser for webscraping.Recently i tried 3 different headless browsers(PhantomJS,Firefox,Chrome). When using phantomJS, it gives some error (i.e):Armv7 processor needs GUI. then,am using Firefox with geckodriver, it shows errors in…
akash
  • 779
  • 5
  • 16
0
votes
1 answer

Running Xvfb in LXD container

It is easy to run GUI application inside LXD container (ubuntu:16.04) with Xvfb and executing the bellow commands inside the container: Xvfb -ac :99 -screen 0 1600x900x24 & export DISPLAY=:99 firefox & My objective is to execute above commands…
0
votes
1 answer

Find element by its calculated properties (e.g. position and size withing ranges)

In an attempt to make web scraping with a headless browser more resilient to site changes, I'd like to combine technical properties of the elements with their visual characteristics. E.g. when looking for a search bar, I'd like to look for a "big…
ivan_pozdeev
  • 33,874
  • 19
  • 107
  • 152