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

Waiting for a selector in a loop with CasperJS

I want to do in the loop waiting selector as long as the found object will not be satisfy specified conditions. I wrote the following code. casper.then( function(){ var need_exit = false; this.echo('enter loop'); var i =…
Interloper
  • 790
  • 7
  • 20
0
votes
1 answer

Can't run firefox in headless mode

According to documentation to start selenium server in headless mode I am supposed to launch the server with the xvfb-run wrapper under a specific Firefox profile. This can be done with following command : DISPLAY=:1 xvfb-run java -jar…
ronline
  • 2,211
  • 1
  • 20
  • 27
0
votes
2 answers

Headless browser for FireFox (similar to PhantomJS for Chrome)

Is there a headless browser for FireFox (similar to PhantomJS for Chrome), that can be used with Karma? Using the Grunt FireFox Launcher plugin causes, the browser to be launched every single time we build our JavaScript using GRUNT. We would like…
0
votes
0 answers

Does PhantomJS headless execution allow to set the browser preferences

We are using the PhantomJS for the Headless execution of our scripts which are written in Selenium Webdriver(2.42.2)+Java using browser Firefox 29.0.1 . We could able to integrate the PhantomJS successfully with our framework. But the issue we are…
0
votes
0 answers

How to find out difference behavior between chrome driver and phantomjs?

When I want to have automated browser function with selenium-webdriver, I write at first with chrome driver and then make it run with phantomjs. But sometimes the two browsers behave differently and the function fails to run with phantomjs while…
0
votes
1 answer

Watir Gem with Headless on Heroku Ruby On Rails App

I have developed my ROR App and I am using Watir Gem along with headless. It works fine on my localhost but when I deploy the code to heroku production it says Firefox not installed. Can Anyone try to help? This is the error…
0
votes
0 answers

how to make headless browser stay on page so that all scripts can load

Hi I am new to headless browser testing/navigating and I was wondering if there was any way for PhantomJS to stay on the webpage for a while (maybe 1 sec) so that it has time for all scripts to load on the page. Is there any way to do that in…
James
  • 557
  • 1
  • 12
  • 29
0
votes
2 answers

Awesomium.Net wrapper class for multi-threaded access only works once

to test this class please install Awesomium.Net sdk from here and add a reference to Awesomium.Core.dll to the visual studio project. the problem i'm having with this class is, it only works with the first ever instance. subsequent instances do not…
Dĵ ΝιΓΞΗΛψΚ
  • 5,068
  • 3
  • 13
  • 26
0
votes
3 answers

Headless Browserify JavaScript Testing with Phantom.js

I'm trying to find a way to execute the following steps. Write Node.js code for the browser Compile the code with browserify Test the browser code in the terminal I would love to get the console.logs that the browser receives, but within the…
ThomasReggi
  • 55,053
  • 85
  • 237
  • 424
0
votes
2 answers

How do I use the latest Webkit version for Capybara specs using PhantomJS?

A fellow developer told me that PhantomJS uses an old version of Webkit, and that this prevents him from always trusting the results he gets from running Capybara specs using PhantomJS. To my knowledge, PhantomJS is the best headless browser…
voltair
  • 615
  • 2
  • 7
  • 21
0
votes
1 answer

Java Program- Get the dynamic(Css/is) page Content

I can't able to get the dynamic webpage(Css/js) content Through Java. I ensured htmlunit, jaunt, webview and so on. Those Tools are Get the HTML(DOC) Only. ** MY question is Rendering Website Content With headless Browser in Java.**
BasK
  • 284
  • 8
  • 24
0
votes
1 answer

Jump to the next step on step timeout in CasperJS

I would like to skip a step in my Casperjs script when it takes too long to run that step.I used the solution suggested in (skip step) and I added stepTimeout and onStepTimeout handler. Here is the piece of code for doing that: var casper =…
Alex
  • 1,914
  • 6
  • 26
  • 47
0
votes
3 answers

How to get cookies from a headless browser provided by HtmlUnit in Java?

I am using HtmlUnit Driver for generating a headless browser. I need the cookie information run the tests ahead. While i am able to inspect the elements i am unable to derive the cookie informations. Please help.
user3558235
  • 3
  • 1
  • 4
0
votes
1 answer

How to operate on the "page" object of PhantomJS from CasperJS?

I have a piece of PhantomJS code and I want to refactor it and move to CasperJS. However, in my original PhantomJS code, I have some lines of code directly operate on the page object and I'm not sure how to translate them to CasperJS. Below is part…
Just a learner
  • 26,690
  • 50
  • 155
  • 234
0
votes
1 answer

missing Raphael dependency in zombie.js?

I'm playing around with a zombie script: var Browser = require('zombie'); var assert = require('assert'); var browser = Browser.create(); browser.debug = true; browser.maxRedirects = 50; browser.userAgent = 'Mozilla/5.0 (X11; Linux x86_64)…
blueberryfields
  • 45,910
  • 28
  • 89
  • 168