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

How to use the JavaScript API of PhantomJS in a Java Application

I want to write an application in Java, which should test a website in a headless browser, like for example PhantomJS or zombie.js. PhantomJS scripts are written in JavaScript so how can I use the JavaScript API provided by PhantomJS in my Java…
juzwani
  • 53
  • 2
  • 7
0
votes
1 answer

How to get ZombieJS+NodeJS to run over a collection?

My naive approach to get ZombieJS to loop over an huge array of items was to add the following code inside my for loop var Browser = require("zombie"); var assert = require("assert"); // Load the page from localhost browser = new…
Draconar
  • 1,147
  • 1
  • 17
  • 36
0
votes
2 answers

Mink > Zombie.js Can't Start Session

I am trying to create a Mink Connection With the Zombie Driver But I am Getting an Error. All ports are open and I have tried using my servers IP. My Code: $driver = new \Behat\Mink\Driver\ZombieDriver('127.0.0.1'); $zombieSession = new…
Alex Pelletier
  • 4,933
  • 6
  • 34
  • 58
0
votes
1 answer

Geb - Inconsistent behaviour in headless mode

I am testing a grails application and have the tests run by Hudson. The tests are passing 100% of the time when run on local machine. Database Is always reset when the tests initialize. I have problem setting the value for a dynamic form. In my .gsp…
Giannis
  • 5,286
  • 15
  • 58
  • 113
0
votes
2 answers

How to render a webpage in a headless browser with different versions of render engine?

I would like to headless "render" a webpage in different versions of browser. Lets say I want to render a page in IE 6,7,8,9,10 and then get the image of it. I was playing around with selenium but if I understand corectly I have to install all the…
gorgi93
  • 2,457
  • 8
  • 30
  • 53
0
votes
1 answer

Login problems with headless firefox and Geb / Selenium

I have problem with a groovy (Geb) script accessing a website and it's login mechanism. On a Mac and a PC with non-headless Firefox all is working well. On a headless linux (Debian or Ubuntu) it does not work - I tried on a AWS micro & small as well…
Jörg Rech
  • 1,339
  • 2
  • 13
  • 25
0
votes
1 answer

Running Selenium Webdriver headlessly using Cron

I am trying to execute my Selenium Scripts through cron headlessly using Xvfb. The code of shell script looks something like this export PATH=$PATH Xvfb :10 -ac & gnome-terminal -e export DISPLAY=:10 & gnome-terminal -e firefox & gnome-terminal -e…
Saheb
  • 1,666
  • 3
  • 18
  • 24
0
votes
2 answers

Get pixel coordinates of HTML/DOM elements using PHP

I am working on an web crawler/site analyzer in php. What I need to do is to extract some tags from a HTML file and compute some attributes (such as image size for example). I can easily do this using a DOM parser, but I would also need to find the…
andrei
  • 95
  • 1
  • 9
0
votes
2 answers

How to generate multiple impressions on a hyperlink through HtmlUnit in Java?

I am using the headless browser provide by HtmlUnit I have loaded a webpage in a webClient. Now I want to generate mulitple impressions on a hyperlink (on the loaded webpage) just like we hover our mouse cursor on a link various times on a link in…
Amit
  • 33,847
  • 91
  • 226
  • 299
0
votes
1 answer

Vagrantfile, AWS Access Key

What are the aws.access_key_id, aws.secret_access_key, aws.keypair_name. And what should their values be? Snippet from: http://www.chrisle.me/2013/08/running-headless-selenium-with-chrome/ It doesn't quite match with the instructions here:…
0
votes
1 answer

Running Selenium Webdriver Scripting by using Headeless Browser?

Hello Friends, I am running one script by using selenium webdriver 2.37.jar as background running, Here In my script browser is opening for more than 50 times and closing.There is no issue with code. But Sir I am eagar to know how same…
Rakesh Bitling
  • 29
  • 1
  • 10
0
votes
1 answer

Link Extraction using Watir Webdriver Speed Issue

I am using Watir Webdriver with headless on a Linux system running Firefox and I am having some speed issues extracting links from webpages. The problem seems to be when multiple frames are being used. For example it cane take 10 minutes to return…
Matt S
  • 33
  • 1
  • 6
0
votes
1 answer

Watir-Webdriver Frame Attributes Not Congurent with Other Sources

I have an issue where if I return the some attributes of a frame they do not match those in Firebug for example. The reason is that I am looking for a way to identify the purpose of a frame. For example on www.cnet.com they load 19 frames in total…
Matt S
  • 33
  • 1
  • 6
0
votes
1 answer

Python: Headless Selenium without admin access

I have a crawler in python that uses Selenium webdriver. I would like to start it in a cluster and leave it running for about 10 days. The problem is: I do not have an X display!!!! I have done some searching and reading. Normally this would be…
Patrick the Cat
  • 2,138
  • 1
  • 16
  • 33
0
votes
1 answer

How to scrape javascript injected image src and alt with phantom.js?

I'm using the following script to scrape images using phantom.js: var page = require('webpage').create(); url = 'https://www.everlane.com/collections/mens-luxury-tees/products/mens-crew-antique' page.open(url, function(status) { if (status !==…
YPCrumble
  • 26,610
  • 23
  • 107
  • 172