Skip to main content

All Questions

1 vote
1 answer
102 views

Why does phantomJS 2.1.1 render this page as background color with no content, but foxshot 1.2.0 renders it correctly?

I like to keep track of Massachusetts lottery results (make sure the results are really random). I can bring up the page of results in any browser and copy-paste the lines of text, and run the text ...
sootsnoot's user avatar
  • 2,236
0 votes
0 answers
123 views

how to take a screenshot of piece of a webpage with phantomjs?

I understand how to take screenshot of entire webpage but how about capturing the view of an specific element using phantomjs. I'm trying as follow var page = require('webpage').create(); page....
Smart's user avatar
  • 41
12 votes
2 answers
15k views

Headless Chrome ( Puppeteer ) - how to get access to document node element?

I'm using phantomJs to parse some content, get some info from it (max image size on page, for example), etc. I've decided to move to puppeteer. And i had faced the issue - in my functions, that was ...
Brissy's user avatar
  • 359
0 votes
1 answer
170 views

Pass custom variables to onResourceRequested with PhantomJS

In order to avoid regressions with our analytics tagging, I want to use PhantomJS to automate testing for Adobe Analytics tags. To do so I want to be able to test 2 things: Presence of certain js ...
cellover's user avatar
  • 471
1 vote
1 answer
75 views

Continuous headless page automation with IPC

I need to make a headless (for a docker container) app that waits for an external signal and then acts on that signal by clicking on several html elements (selectors, buttons, links) and filling in ...
Eric Dela Cruz's user avatar
8 votes
1 answer
2k views

Headless JavaScript Testing HTML5 audio/ video

I know that there is a lot of other similar questions, however the answers don't provide a way round this problem. I have a JavaScript file used on my website that uses the HTML 5 Web Audio and want ...
Tom's user avatar
  • 330
1 vote
2 answers
99 views

Headless JS site testing with test for each page

I'm trying to write headless integration tests for every page on my site in CoffeeScript/Javascript and run them in one command. I've tried using casperjs but I keep running into issues When ...
Will I AM's user avatar
  • 220
2 votes
1 answer
573 views

loadspeed.js timings : onload, DomContentLoaded or something else?

Are loadspeed.js timings correct ? because i have different results between loaspeed.js and developpor toolbar in Chrome. var page = require('webpage').create(), system = require('system'), ...
Cybermaxs's user avatar
  • 24.6k
0 votes
1 answer
235 views

Running Composite Tests with PhantomJS

I want to automate some technical tests on an entire domain. These test can be loadspeed, Yslow Grade, Js errors, Response Status Code Check... I successful created a spider script that grabs all urls ...
Cybermaxs's user avatar
  • 24.6k
2 votes
1 answer
836 views

Load a javascript/ajax call on click using phantomjs

I am trying to build a webscraper with which I can download the HTML source after information is received from a ajax call on click. Simply speaking initially I download a the webpage and then on ...
Ajay Nair's user avatar
  • 1,867
9 votes
2 answers
12k views

How to make PhantomJS include background images when rendering screenshot?

I'm using PhantomJS to take screenshots of a webpage, with the page.render() method as detailed in https://github.com/ariya/phantomjs/wiki/Screen-Capture . It works fine except for background ...
Michael Low's user avatar
  • 24.5k